Skip to content

Instantly share code, notes, and snippets.

@rgarver
Created July 29, 2010 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgarver/497039 to your computer and use it in GitHub Desktop.
Save rgarver/497039 to your computer and use it in GitHub Desktop.
class Capybara::Driver::RackTest::Node
def disabled?
self['disabled'] =~ /^(1|disabled)$/
end
end
Then /^I should not be able to choose "([^"]*)"$/ do |payment_method|
field_labeled(payment_method).should be_disabled
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment