Logo: Relish

  1. Sign in

Project: Cukesalad 0.8.1

Define the Role

As a Step Free Cuker
You want to define a role
So that you are ready to explain the tasks

Background
Given
you are a Step Free Cuker
Scenarios
We'll tell you what you need to do to establish the role
When
you run a scenario, containing
Given I am a New Customer
Then
you should see it has 'failed'
And
you should see a reply that includes:
      I can't find a role called 'NewCustomer'. Have you created it?
      e.g.
        module NewCustomer
        end
Once you've created the role, you see the step pass
Given
you have created a role, named 'NewCustomer'
When
you run a scenario: containing
Given I am a New Customer
Then
you should see it has 'passed'
Roles which grammatically required an 'an'
Given
you have created a role, named 'UnregisteredCustomer'
When
you attempt to run a scenario: containing
Given I am an Unregistered Customer
Then
you should see it has 'passed'

Last published over 6 years ago by RiverGlide.