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
1 changed files with 1 additions and 1 deletions

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