Skip to content

Instantly share code, notes, and snippets.

@vdabravolski
Created August 23, 2011 13:50
Show Gist options
  • Save vdabravolski/1165168 to your computer and use it in GitHub Desktop.
Save vdabravolski/1165168 to your computer and use it in GitHub Desktop.
Comparison of expected and actual data.
Then /^I should see table "XXX" with $/ do |table|
# Some actions before
table.hashes.each do |exp_data|
# get actual data
[email protected]_data(xxx)
#Compare to hashes
exp_data.should eq(act_data),"Expected and Actual data are different:#{SpecialMethods.compare_hashes(exp_data,act_data)}."
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment