Created
January 26, 2011 16:55
-
-
Save adamgamble/797000 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "([^"]*)" 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