mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
11 lines
248 B
Ruby
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
|