diff --git a/activesupport/test/core_ext/class/attribute_test.rb b/activesupport/test/core_ext/class/attribute_test.rb index 6319feaf0d..b9071b5ea0 100644 --- a/activesupport/test/core_ext/class/attribute_test.rb +++ b/activesupport/test/core_ext/class/attribute_test.rb @@ -112,7 +112,7 @@ class ClassAttributeTest < ActiveSupport::TestCase end test "setter returns set value" do - val = @klass.send(:setting=, 1) + val = @klass.public_send(:setting=, 1) assert_equal 1, val end end