Created
April 15, 2011 21:15
-
-
Save mgarriss/922495 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
Then /^the "([^"]*)" checkbox(?: within (.*))? should not be checked$/ do |label, parent| | |
with_scope(parent) do | |
field_checked = find_field(label)['checked'] | |
if field_checked.respond_to? :should | |
field_checked.should be_false | |
else | |
assert !field_checked | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment