Created
July 13, 2011 17:14
-
-
Save zealoushacker/1080776 to your computer and use it in GitHub Desktop.
Table values matcher
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
Then /^table "([^"]*)" should have the values:$/ do |table_id, table| | |
table.hashes.each do |row| | |
Then %{row #{row[:row]} column #{row[:col]} of table "#{table_id}" should be "#{row[:value]}"} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment