Skip to content

Instantly share code, notes, and snippets.

@icambridge
Created October 6, 2014 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icambridge/7694d6d7b0a987f6c33b to your computer and use it in GitHub Desktop.
Save icambridge/7694d6d7b0a987f6c33b to your computer and use it in GitHub Desktop.
Scenario: Recognise outside of heirachry with line manager recognition approval and reward control table director approval
Given I am logged in to the system
And recognition approval is set to manual by line manager
And reward approval is set to manual with a budget control table of:
| Director | 100 |
| Plus one | 50 |
| Line Manager | 1 |
When I recognise someone outside of my heirarchy for "150"
Then the recognition status should be pending
And the reward status should control tabled
And the line manager should be notified of pending recognition
And the director should be notified of pending reward
But no money should be transferred
@mackstar
Copy link

@rtens using a parsing adapter could mean more flexibility should the user want to change the structure. But doing so would make it increasingly difficult to match the features to the tests.

So far this style has worked great for us which is why that is the default. I will be focussing on 'Domain Driven Design' in future ramblings, the reason behind styling it this way may then be a little more clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment