From 7eaae937e661ad3026cf25f407e202779c9ea27b Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 5 Jan 2018 00:42:10 +0900 Subject: Partial revert the changing default value of `readonly_value` This is a partial revert of #26182. There is no reason to change the default value. --- activerecord/test/cases/relation_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activerecord/test') diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb index b424ca91de..dbf3389774 100644 --- a/activerecord/test/cases/relation_test.rb +++ b/activerecord/test/cases/relation_test.rb @@ -24,10 +24,9 @@ module ActiveRecord def test_initialize_single_values relation = Relation.new(FakeKlass, :b, nil) - (Relation::SINGLE_VALUE_METHODS - [:create_with, :readonly]).each do |method| + (Relation::SINGLE_VALUE_METHODS - [:create_with]).each do |method| assert_nil relation.send("#{method}_value"), method.to_s end - assert_equal false, relation.readonly_value value = relation.create_with_value assert_equal({}, value) assert_predicate value, :frozen? -- cgit v1.2.3