Skip to content

Commit

Permalink
Model#attribute_method_matchers is a public method
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Oct 2, 2020
1 parent ce25559 commit 674fd96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activemodel/test/cases/attribute_methods_test.rb
Expand Up @@ -106,8 +106,8 @@ class AttributeMethodsTest < ActiveModel::TestCase
end

test "unrelated classes should not share attribute method matchers" do
assert_not_equal ModelWithAttributes.send(:attribute_method_matchers),
ModelWithAttributes2.send(:attribute_method_matchers)
assert_not_equal ModelWithAttributes.public_send(:attribute_method_matchers),
ModelWithAttributes2.public_send(:attribute_method_matchers)
end

test "#define_attribute_method generates attribute method" do
Expand Down

0 comments on commit 674fd96

Please sign in to comment.