1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Hash#to_s behaves differently between 1.8 and 1.9, so adjust accordingly

This commit is contained in:
Aaron Patterson 2010-09-23 08:48:10 -07:00
parent 1da0dc2f90
commit afdf86e8ee

View file

@ -662,7 +662,7 @@ class BasicsTest < ActiveRecord::TestCase
cloned_topic.reload
# FIXME: I think this is poor behavior, and will fix it with #5686
assert_equal 'ac', cloned_topic.title
assert_equal({'a' => 'c'}.to_s, cloned_topic.title)
end
def test_clone_with_aggregate_of_same_name_as_attribute