Sha256: 6ce0edde1fd6d92ad0177579439c515c3f5887a1de6f6ab2fba6426b17e620ce
Contents?: true
Size: 670 Bytes
Versions: 4
Compression:
Stored size: 670 Bytes
Contents
Given /^I am a new visitor$/ do clear_cookies end When /^I view "([^\"]*)"$/ do |path| visit(path) end When /^I (post|put) to "([^\"]*)":$/ do |meth, path, params| send(meth, path, params.hashes.inject({}){|h,e| h[e["key"]] = e["value"]; h}) end Then /^I should see "([^\"]*)"$/ do |string| assert_match(string, last_response.body) end When /^I follow "([^\"]*)"$/ do |link| click_link(link) end When /^I fill in "([^\"]*)" with "([^\"]*)"$/ do |field, value| fill_in(field, :with => value) end When /^I press "([^\"]*)"$/ do |button| click_button(button) end Then /^I should be on "([^\"]*)"$/ do |path| assert_equal path, last_response.path end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
metry-1.0.0 | features/step_definitions/web.rb |
metry-1.0.1 | features/step_definitions/web.rb |
metry-1.1.0 | features/step_definitions/web.rb |
metry-1.2.0 | features/step_definitions/web.rb |