Permalink
Browse files

Added some more features for tags for outlines and features

  • Loading branch information...
1 parent f53e4ff commit ac658dd9b1a8a8586262f6ed95141d9f42c812e0 @jnicklas jnicklas committed Feb 24, 2011
Showing with 16 additions and 1 deletion.
  1. +10 −0 features/capybara.feature
  2. +5 −0 features/selenium.feature
  3. +1 −1 features/step_definitions/capybara_steps.rb
View
@@ -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
@@ -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
@@ -1,4 +1,4 @@
-When /^I visit the root page$/ do
+When /^I visit the (?:root|home) page$/ do
visit('/')
end

0 comments on commit ac658dd

Please sign in to comment.