You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thinking about this some more, I don't think hash keys should ever be sorted. I think we should use the expected value as the source of truth for how keys should appear, because oftentimes you're looking at a failing test and comparing the output to what you've written. In other words you don't know what the actual value is, but you do know what the expected value is (because you wrote it).
We already sort keys for ActiveRecord::Base instances, so it may make sense to sort hash keys too.
The text was updated successfully, but these errors were encountered: