Skip to content

Commit

Permalink
Housekeeping: improving how the example guides the user
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymarcano committed Jul 4, 2011
1 parent 9b87611 commit 84e6b96
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions features/defining_tasks/define_a_task.feature
@@ -1,4 +1,4 @@
Feature: Define the Task
Feature: Define a Task
As a Step Free Cuker
You want to describe a task
So that your steps that use that role are executed
Expand All @@ -8,6 +8,23 @@ Feature: Define the Task
Given you are a Step Free Cuker
And you were able to create a role: called 'NewCustomer'

Scenario: We'll tell you what you need to do to describe the task
Given you did not create a task: called 'do something'
When you attempt to run a scenario: containing
"""
Given I am a New Customer
And I was able to do something
"""
Then you should see it has 'failed'
And you should see a reply that includes:
"""
I can't find a task called 'do something'. Have you created it?
e.g.
in_order_to 'do something' do
# the actions
end
"""

Scenario Outline: Once you've created the task, you see the step pass
Given you were able to create a task: called 'do something'
When you attempt to run a scenario: containing
Expand Down Expand Up @@ -35,20 +52,3 @@ Feature: Define the Task
| And I should do something |
| Then you should do something |
| And you should do something |

Scenario: We'll tell you what you need to do to describe the task
Given you did not create a task: called 'do something'
When you attempt to run a scenario: containing
"""
Given I am a New Customer
And I was able to do something
"""
Then you should see it has 'failed'
And you should see a reply that includes:
"""
I can't find a task called 'do something'. Have you created it?
e.g.
in_order_to 'do something' do
# the actions
end
"""

0 comments on commit 84e6b96

Please sign in to comment.