Created
August 23, 2011 13:50
-
-
Save vdabravolski/1165168 to your computer and use it in GitHub Desktop.
Comparison of expected and actual data.
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 /^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