Skip to content

Instantly share code, notes, and snippets.

@johnivanoff
Created March 8, 2012 02:07
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 johnivanoff/1998054 to your computer and use it in GitHub Desktop.
Save johnivanoff/1998054 to your computer and use it in GitHub Desktop.
$ cucumber --profile wip
Using the wip profile...
Feature: Manage locations
In order to manage locations
As a user
I want to create and edit my locations.
@wip
Scenario Outline: Edit a location # features/managing_locations.feature:31
Given I am on the <language> site # features/step_definitions/location_steps.rb:5
And there is a location named "<location>" # features/step_definitions/location_steps.rb:1
When I "<action>" the location "<field>" to "<new_name>" # features/step_definitions/location_steps.rb:33
Then I should see "<new_name>" # features/step_definitions/location_steps.rb:13
Examples:
| language | location | action | field | new_name |
| en | location 1 | Update | Name | location has changed |
expected there to be content "location has changed" in "International\n\nlocation 1\nEdit\n\n" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/location_steps.rb:15:in `/^(?:|I )should see "([^"]*)"$/'
features/managing_locations.feature:35:in `Then I should see "<new_name>"'
Failing Scenarios:
cucumber -p wip features/managing_locations.feature:31 # Scenario: Edit a location
1 scenario (1 failed)
4 steps (1 failed, 3 passed)
0m2.175s
The --wip switch was used, so the failures were expected. All is good.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment