Skip to content

Instantly share code, notes, and snippets.

@butzopower
Created May 17, 2010 19:07
Show Gist options
  • Save butzopower/404102 to your computer and use it in GitHub Desktop.
Save butzopower/404102 to your computer and use it in GitHub Desktop.
#Detailed version
Given I am logged in
And I have the operations_front_staff role
And the following animal accounts exist:
| User Name | Login | AP Number | Account Number |
| John Arbuckle | jarbuckle | 0905123 | 3256 |
And the following animal species exist:
| Accounting Code | Common Name | Tagged? | USDA? | Caged? | Tank? |
| MSE | Mouse | False | False | True | False |
| SHP | Sheep | True | True | False | False |
| RAT | Rat | False | False | False | False |
| FSH | Fish | False | False | True | True |
And the following animal locations exist:
| Building Code | Building Acronym | Room Name |
| 0204 | ML | 1234 |
And the following complete tagged animals exist:
| Species | Tag Number | Investigator | AP Number | Account |
| Sheep | 90006 | John Arbuckle | 0905123 | 3256 |
And the following complete animal inventory exist:
| Species | Investigator | Account | Bldg | Room | Quantity | Start Date | End Date |
| Mouse | John Arbuckle | 3256 | 0204 | 234A | 91 | August 23, 2009 | nil |
| Rat | John Arbuckle | 3256 | 0204 | 234A | 91 | August 23, 2009 | nil |
When I go to the animal transaction slips page
And I select "SHP - Sheep" from "Species:"
And I select "Removal" from "Transaction:"
And I fill in the following slip fields:
| Effective_date | Tag_number | Login | Account_number | Building | Room | Protocol_number | Comment | Count_against_protocol |
| May 12, 2010 | 90006 | jarbuckle | 3256 | 0204 | 1234 | 0905123 | sad pandas | True |
And I click enter on slip entry row
Then I should not see any errors
#Less technical version
Given I am logged in
And I have the operations_front_staff role
And there is a sheep in inventory
And animal carer finds that sheep dead
And she fills out paper slip fields:
| Date | Tag # | Building | Room | Investigator Name | Comment |
| | | | | | |
And gives it to me
When I go to the animal transaction slips page
And I click enter on slip entry row
And I select "SHP - Sheep" from "Species:"
And I select "Removal" from "Transaction:"
And I fill out fields from paper slip:
| Effective_date | Tag_number | Building | Room | Comment |
| Date | Tag # | Building | Room | Comment |
And I also fill out additional fields:
| Login | Account_number | Protocol_number | Count_against_protocol |
| | | | |
And I click enter on slip entry row
Then I should not see any errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment