On Feb 22, 2:08 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
wrote:
> Hashes should not be compared by their
> string representations.
No. But you can do this: assert_equal hash1.sort, hash2.sort
As long as the keys have <=> method defined, it'll work.
Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---