Sha256: fb03a13e9904102e598ac6706970f77c766b32d54ff607e07f83ebb32db6470e
Contents?: true
Size: 807 Bytes
Versions: 3
Compression:
Stored size: 807 Bytes
Contents
Then /^I should see a form$/ do assert_have_selector "form[action='/new'][method='post']" end Then /^I should see a.? (.+) text field$/ do |field| assert_have_selector "#user_#{field}" end Then /^I should see a.? (.+) checkbox$/ do |field| assert_have_selector "#user_#{field}" end Then /^I should see a submit button$/ do assert_have_selector "input[type=image]" end Then /^I should see a success page$/ do within "h1" do assert_contain "Success!" end end Then /^the (.+) field should have an error$/ do |field| assert_have_selector "#user_#{field}" assert_have_selector ".validation" end Then /^the error should be "([^\"]*)"$/ do |error| within ".validation" do assert_contain error end end Then /^spent today should be zero$/ do find_user.spent_today.should == 0 end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
winton-sum-0.1.1 | features/step_definitions/then.rb |
sum-0.1.2 | features/step_definitions/then.rb |
sum-0.1.1 | features/step_definitions/then.rb |