Created
July 29, 2010 02:19
-
-
Save rgarver/497039 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Capybara::Driver::RackTest::Node | |
def disabled? | |
self['disabled'] =~ /^(1|disabled)$/ | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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