Skip to content

Instantly share code, notes, and snippets.

@mcgaffin
Created May 21, 2019 15:16
Show Gist options
  • Save mcgaffin/8838477a1955e55ede911eebe7cc10a0 to your computer and use it in GitHub Desktop.
Save mcgaffin/8838477a1955e55ede911eebe7cc10a0 to your computer and use it in GitHub Desktop.
Comparing Individual users in a planner spec
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