Skip to content

Instantly share code, notes, and snippets.

@mgarriss
Created April 15, 2011 21:15
Show Gist options
  • Save mgarriss/922495 to your computer and use it in GitHub Desktop.
Save mgarriss/922495 to your computer and use it in GitHub Desktop.
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