Created
April 29, 2009 23:08
-
-
Save emk/104130 to your computer and use it in GitHub Desktop.
Fill in multiline forms with Cucumber and Webrat
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
# Fill in multiple form fields using a table. Use it as follows: | |
# | |
# When I fill in the fields | |
# | Field 1 | Value 1 | | |
# | Field 2 | Value 2 | | |
When /^I fill in the fields$/ do |table| | |
table.rows_hash.each {|field, value| fill_in field, :with => value } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment