aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/test/cases/dup_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/dup_test.rb b/activerecord/test/cases/dup_test.rb
index a1fc639290..46abe7792c 100644
--- a/activerecord/test/cases/dup_test.rb
+++ b/activerecord/test/cases/dup_test.rb
@@ -13,7 +13,7 @@ module ActiveRecord
topic = Topic.first
duped = topic.dup
- assert !topic.readonly?, 'should not be readonly'
+ assert !duped.readonly?, 'should not be readonly'
end
def test_is_readonly
@@ -21,7 +21,7 @@ module ActiveRecord
topic.readonly!
duped = topic.dup
- assert topic.readonly?, 'should be readonly'
+ assert duped.readonly?, 'should be readonly'
end
def test_dup_not_persisted