, , , . , . , , , , , , : .
: " ", , , Rails , . , Rails.
. , . (BDD) , . , , - .
- , , / (, ), , .
(.. ), . , - , . , , .
, , , , - , , . - ( )
When I visit the new appointment page
And I create a new public appointment
And I visit my calendar
Then I see the public appointment
:
When there is an unrestricted user "Dad"
And there is a restricted user "Billy" supervised by "Dad"
And there is a user "Stalker"
When "Billy" visits the new appointment page
And "Billy" creates a new appointment
And "Billy" visits his calendar
Then "Billy" sees a pending appointment
When "Stalker" visits "Billy" calendar
Then "Stalker" does not see an appointment
When "Dad" visits "Billy" calendar
And "Dad" approves the pending appointment
Then "Dad" sees an appointment
When "Billy" visits his calendar
Then "Billy" sees an appointment
When "Stalker" visits "Billy" calendar
Then "Stalker" does not see an appointment
, , , (, , ). , .