15 lines
312 B
Ruby
15 lines
312 B
Ruby
#!/usr/bin/env ruby
|
|
# vim: tabstop=2 expandtab shiftwidth=2
|
|
When /^I visit the home page$/ do
|
|
visit "/"
|
|
end
|
|
|
|
When /^I click the "([^"]*)" checkbox$/ do |name|
|
|
find(:xpath, "//input[@name='#{name}']").set(true)
|
|
end
|
|
|
|
Then /^the page should say "([^"]*)"$/ do |content|
|
|
page.should have_content(content)
|
|
end
|
|
|