Created
February 11, 2012 04:46
-
-
Save johnivanoff/1796385 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Delete a location # features/managing_locations.feature:42 | |
Given there are 4 locations # features/managing_locations.feature:43 | |
And I am on the <language> site # features/step_definitions/location_steps.rb:5 | |
And I "<action>" the 3rd location # features/managing_locations.feature:45 | |
Then I should see 3 locations # features/managing_locations.feature:46 | |
Examples: | |
| language | action | | |
| en | Delete | | |
1 scenario (1 undefined) | |
4 steps (1 skipped, 3 undefined) | |
0m1.299s | |
You can implement step definitions for undefined steps with these snippets: | |
Given /^there are (\d+) locations$/ do |arg1| | |
pending # express the regexp above with the code you wish you had | |
end | |
Given /^I "([^"]*)" the (\d+)rd location$/ do |arg1, arg2| | |
pending # express the regexp above with the code you wish you had | |
end | |
Then /^I should see (\d+) locations$/ do |arg1| | |
pending # express the regexp above with the code you wish you had | |
end | |
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