Skip to content

Instantly share code, notes, and snippets.

@adamgamble
Created January 26, 2011 16:55
Show Gist options
  • Save adamgamble/797000 to your computer and use it in GitHub Desktop.
Save adamgamble/797000 to your computer and use it in GitHub Desktop.
Then /^the "([^"]*)" select field(?: within "([^"]*)")? should contain "([^"]*)"$/ do |field, selector, value|
with_scope(selector) do
field = find_field(field)
values = field.native.children.map {|e| e.children[0].to_s}
assert(values.include?(value), true)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment