Skip to content

Commit

Permalink
Added some more features for tags for outlines and features
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Feb 24, 2011
1 parent f53e4ff commit ac658dd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions features/capybara.feature
Expand Up @@ -17,6 +17,16 @@ Feature: Capybara's cucumber integration
When I visit the root page
Then Capybara should use the "selenium" driver

@selenium
Scenario Outline: selenium tag with scenario outline
When I visit the <Page> page
Then Capybara should use the "selenium" driver

Examples:
| Page |
| root |
| home |

Scenario: matchers
When I visit the root page
And I use a matcher that fails
Expand Down
5 changes: 5 additions & 0 deletions features/selenium.feature
@@ -0,0 +1,5 @@
@selenium
Feature: an entire feature that uses selenium

Scenario: should use selenium without being explicitely told
Then Capybara should use the "selenium" driver
2 changes: 1 addition & 1 deletion features/step_definitions/capybara_steps.rb
@@ -1,4 +1,4 @@
When /^I visit the root page$/ do
When /^I visit the (?:root|home) page$/ do
visit('/')
end

Expand Down

0 comments on commit ac658dd

Please sign in to comment.