Skip to content

Instantly share code, notes, and snippets.

@mikelikesbikes
Created November 30, 2010 15:00
Show Gist options
  • Select an option

  • Save mikelikesbikes/721794 to your computer and use it in GitHub Desktop.

Select an option

Save mikelikesbikes/721794 to your computer and use it in GitHub Desktop.
form_steps.rb
Then /^I should see "([^"]*)" with the following options:$/ do |element, table|
within(element) do |content|
table.hashes.each do |row|
content.should have_selector("option", :value => row['value'], :content => row['option'])
end
end
end
Then I should see "#select_box" with the following options:
| option | value |
| x | 1 |
| y | 2 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment