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:
parent
af334f004e
commit
cc433d3a08
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue