1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Class attribute writer is a public method

This commit is contained in:
Akira Matsuda 2020-10-02 15:38:58 +09:00
parent af334f004e
commit cc433d3a08

View file

@ -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