Permalink
Browse files

Housekeeping: improving how the example guides the user

  • Loading branch information...
1 parent 9b87611 commit 84e6b9610cdbb7081d82e50d8dcd5b72e46f2811 @antonymarcano antonymarcano committed Jul 4, 2011
Showing with 18 additions and 18 deletions.
  1. +18 −18 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
@@ -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
@@ -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.