aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/base_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/base_test.rb')
-rwxr-xr-xactiverecord/test/base_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb
index a84e0ed5e8..c5834f2e5b 100755
--- a/activerecord/test/base_test.rb
+++ b/activerecord/test/base_test.rb
@@ -567,7 +567,7 @@ class BasicsTest < Test::Unit::TestCase
end
def test_equality
- assert_equal Topic.find(1), Topic.find(2).parent
+ assert_equal Topic.find(1), Topic.find(2).topic
end
def test_equality_of_new_records
@@ -575,7 +575,7 @@ class BasicsTest < Test::Unit::TestCase
end
def test_hashing
- assert_equal [ Topic.find(1) ], [ Topic.find(2).parent ] & [ Topic.find(1) ]
+ assert_equal [ Topic.find(1) ], [ Topic.find(2).topic ] & [ Topic.find(1) ]
end
def test_destroy_new_record