aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-03-19 21:17:02 -0400
committerGitHub <noreply@github.com>2019-03-19 21:17:02 -0400
commit3dee96e92b08edafa2a7be6964b0596bb738f709 (patch)
tree3466be4920bc55d770514c7d4996e032a110095b /activerecord/test
parentb504a5d96e0ec30856a3fc54305550f3586002aa (diff)
parent8ca3c286a768038f6b391fd3bfbdfcc299876a1f (diff)
downloadrails-3dee96e92b08edafa2a7be6964b0596bb738f709.tar.gz
rails-3dee96e92b08edafa2a7be6964b0596bb738f709.tar.bz2
rails-3dee96e92b08edafa2a7be6964b0596bb738f709.zip
Merge pull request #35595 from shioyama/generated_attribute_methods_namespaced_constant
Give GeneratedAttributeMethods module a name
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index f51c87ef2b..9fd62dcf72 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -1083,7 +1083,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase
test "generated attribute methods ancestors have correct class" do
mod = Topic.send(:generated_attribute_methods)
- assert_match %r(GeneratedAttributeMethods), mod.inspect
+ assert_match %r(Topic::GeneratedAttributeMethods), mod.inspect
end
private