public
Created

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
$ 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 |
undefined method `edit_location_path' for #<#<Class:0xb4954c>:0xb1bde0> (ActionView::Template::Error)
./app/views/locations/show.html.erb:2:in `_app_views_locations_show_html_erb___614471579_8136790'
...
./features/step_definitions/location_steps.rb:34:in `/^I "([^"]*)" the location "([^"]*)" to "([^"]*)"$/'
features/managing_locations.feature:34:in `When I "<action>" the location "<field>" to "<new_name>"'
 
Failing Scenarios:
cucumber -p wip features/managing_locations.feature:31 # Scenario: Edit a location
 
1 scenario (1 failed)
4 steps (1 failed, 1 skipped, 2 passed)
0m2.041s
 
The --wip switch was used, so the failures were expected. All is good.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.