aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-04-19 18:19:25 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-04-19 18:21:31 +0900
commit607d77ab073581172a66b26e2807790cd723719e (patch)
tree640eac581c98422f33095e2a43121c09cc572f41 /activerecord/test/cases/attribute_methods_test.rb
parent2733a68f8b8a0b3ce785d516b0f577b5693cf64b (diff)
downloadrails-607d77ab073581172a66b26e2807790cd723719e.tar.gz
rails-607d77ab073581172a66b26e2807790cd723719e.tar.bz2
rails-607d77ab073581172a66b26e2807790cd723719e.zip
Give GeneratedRelationMethods module a name
This follows #35595.
Diffstat (limited to 'activerecord/test/cases/attribute_methods_test.rb')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index 9fd62dcf72..5cbe5d796d 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -1081,9 +1081,9 @@ class AttributeMethodsTest < ActiveRecord::TestCase
assert_equal ["title"], model.accessed_fields
end
- test "generated attribute methods ancestors have correct class" do
+ test "generated attribute methods ancestors have correct module" do
mod = Topic.send(:generated_attribute_methods)
- assert_match %r(Topic::GeneratedAttributeMethods), mod.inspect
+ assert_equal "Topic::GeneratedAttributeMethods", mod.inspect
end
private