Skip to content

@johnivanoff /gist:1699926
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
$ 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
undefined method `location_url' for #<LocationsController:0x00000100c24330> (NoMethodError)
./app/controllers/locations_controller.rb:29:in `block (2 levels) in create'
./app/controllers/locations_controller.rb:27:in `create'
(eval):2:in `click_button'
./features/step_definitions/location_steps.rb:31:in `/^I press "([^"]*)"$/'
features/manage_locations.feature:22:in `When I press "Create"'
Then I should see "Shiny location" # features/step_definitions/location_steps.rb:9
Failing Scenarios:
cucumber -p wip features/manage_locations.feature:19 # Scenario: Create a new location
1 scenario (1 failed)
4 steps (1 failed, 1 skipped, 2 passed)
0m0.652s
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
Something went wrong with that request. Please try again.