Created
May 21, 2019 15:16
-
-
Save mcgaffin/8838477a1955e55ede911eebe7cc10a0 to your computer and use it in GitHub Desktop.
Comparing Individual users in a planner spec
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
def compare_individual_users(good, test) | |
keys = good.first.last.keys.sort | |
good.each do |user_key, good_user| | |
test_user = test[user_key] | |
puts "---> #{user_key}" | |
keys.each do |key| | |
if (good_user[key] != test_user[key]) | |
puts key | |
puts good_user[key] | |
puts test_user[key] | |
puts "---" | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment