To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorHand over visits
Model test
- Background
-
- Given
- the database is empty
- And
- inventory pool model test data setup
- And
- all contracts and contract reservations are deleted
- Scenarios
-
- Inventory pool returns a list of hand over visits per user
- Inventory pool should return a visit containing reservations for items that are reserved from the same day on by a user
- Inventory pool should not mix visits of different users
- Inventory pool returns a list of hand over visits per user
-
- Given
- there are open contracts for all users
- And
- every contract has a different start date
- And
- there are hand over visits for the specific inventory pool
- When
- all the contract reservations of all the events are combined
- Then
- the result is a set of contract reservations that are associated with the users' contracts
- Inventory pool should return a visit containing reservations for items that are reserved from the same day on by a user
-
- Given
- there is an open contract with reservations for a user
- And
- the first contract line starts on the same date as the second one
- And
- the third contract line starts on a different date as the other two
- When
- the visits of the inventory pool are fetched
- Then
- the first two contract reservations should now be grouped inside the first visit, which makes it two visits in total
- Inventory pool should not mix visits of different users
-
- Given
- there are 2 different contracts for 2 different users
- Then
- there are 2 hand over visits for the given inventory pool
- Given
- 1st contract line of 2nd contract has the same start date as the 1st contract line of the 1st contract
- And
- 1st contract line of 2nd contract has the end date 2 days ahead of its start date
- Then
- there should be different visits for 2 users with same start and end date
Last published over 3 years ago by mkmit.