forked from cucumber/cucumber-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
74 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Feature: Nested Steps | ||
|
||
|
||
Background: | ||
Given a scenario with a step that looks like this: | ||
"""gherkin | ||
Given two turtles | ||
""" | ||
And a step definition that looks like this: | ||
"""ruby | ||
Given /a turtle/ do | ||
puts "turtle!" | ||
end | ||
""" | ||
|
||
Scenario: Use #steps to call several steps at once | ||
Given a step definition that looks like this: | ||
"""ruby | ||
Given /two turtles/ do | ||
steps %{ | ||
Given a turtle | ||
And a turtle | ||
} | ||
end | ||
""" | ||
When I run the feature with the progress formatter | ||
Then the output should contain: | ||
""" | ||
turtle! | ||
turtle! | ||
""" | ||
|
||
Scenario: Use #step to call a single step | ||
Given a step definition that looks like this: | ||
"""ruby | ||
Given /two turtles/ do | ||
step "a turtle" | ||
step "a turtle" | ||
end | ||
""" | ||
When I run the feature with the progress formatter | ||
Then the output should contain: | ||
""" | ||
turtle! | ||
turtle! | ||
""" | ||
|
||
Scenario: Use deprecated i18n methods | ||
Given a step definition that looks like this: | ||
"""ruby | ||
Given /two turtles/ do | ||
Given "a turtle" | ||
end | ||
""" | ||
When I run the feature with the progress formatter | ||
Then the output should contain "WARNING" |
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
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
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
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