1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/features/step_definitions/capybara_steps.rb
2011-02-06 14:34:32 +01:00

11 lines
248 B
Ruby

When /^I visit the root page$/ do
visit('/')
end
Then /^I should see "([^"]*)"$/ do |text|
page.should have_content(text)
end
Then /^Capybara should use the "([^"]*)" driver$/ do |driver|
Capybara.current_driver.should == driver.to_sym
end