diff options
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/base_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index b12d0c941d..108955f5a3 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -468,6 +468,10 @@ class BasicsTest < Test::Unit::TestCase assert_equal Topic.find(1), Topic.find(2).parent end + def test_equality_of_new_records + assert_not_equal Topic.new, Topic.new + end + def test_hashing assert_equal [ Topic.find(1) ], [ Topic.find(2).parent ] & [ Topic.find(1) ] end |