Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some more features for tags for outlines and features

  • Loading branch information...
commit ac658dd9b1a8a8586262f6ed95141d9f42c812e0 1 parent f53e4ff
@jnicklas authored
View
10 features/capybara.feature
@@ -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
View
5 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
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.