Sha256: 254ca875cd48c3b80c67d56cd7eaa70975ede1d037dab603286e234e3d08e314
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
Given /^I am on the (.*?) page$/ do |name| visit Mist::Engine.routes.url_helpers.send("#{name.gsub(/ /, '_')}_path") end Given /^I am on the (.*?) page in "([^"]*)" format$/ do |name, format| visit Mist::Engine.routes.url_helpers.send("#{name.gsub(/ /, '_')}_path", :format => format) end When /^I follow "([^"]*)"$/ do |arg1| click_link arg1 end When /^I fill in "([^"]*)" with "([^"]*)"$/ do |arg1, arg2| fill_in arg1, :with => arg2 end When /^I press "([^"]*)"$/ do |arg1| click_button arg1 end Then /^I should be on the (.*?) page$/ do |name| page.current_url.should =~ /^http:\/\/www.example.com\/#{name}\/?/ end Then /^I should see "([^"]*)"$/ do |arg1| page.should have_content(arg1) end When /^I go to the (.*?) page$/ do |name| visit Mist::Engine.routes.url_helpers.send("#{name.gsub(/ /, '_')}_path") end Then /^I should not see "([^"]*)"$/ do |content| page.should_not have_content(content) end Then /^show me the response$/ do puts page.body end Then /^the page source should contain "([^"]*)"$/ do |src| page.body.should match(Regexp.compile(Regexp.escape src)) end
Version data entries
4 entries across 4 versions & 1 rubygems