Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@johnivanoff
Created January 29, 2012 18:06
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/1699900 to your computer and use it in GitHub Desktop.
Save johnivanoff/1699900 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: Create a new location # features/manage_locations.feature:19
Given I am on new location page # features/step_definitions/location_steps.rb:22
And I fill in "Name" with "Shiny location" # features/step_definitions/location_steps.rb:26
When I press "Create" # features/step_definitions/location_steps.rb:30
Then I should see "Shiny location" # features/step_definitions/location_steps.rb:9
expected there to be content "Shiny location" in "Zzz\n\nLocations\n\n" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/location_steps.rb:11:in `/^(?:|I )should see "([^"]*)"$/'
features/manage_locations.feature:23:in `Then I should see "Shiny location"'
Failing Scenarios:
cucumber -p wip features/manage_locations.feature:19 # Scenario: Create a new location
1 scenario (1 failed)
4 steps (1 failed, 3 passed)
0m0.612s
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