diff --git a/activestorage/test/models/attached/many_test.rb b/activestorage/test/models/attached/many_test.rb index b78692361fc..386d57b3c40 100644 --- a/activestorage/test/models/attached/many_test.rb +++ b/activestorage/test/models/attached/many_test.rb @@ -879,7 +879,7 @@ class ActiveStorage::ManyAttachedTest < ActiveSupport::TestCase Rails.configuration.active_storage.stub(:service, nil) do error = assert_raises RuntimeError do User.class_eval do - has_one_attached :featured_photos + has_many_attached :featured_photos end end diff --git a/activestorage/test/models/attached/one_test.rb b/activestorage/test/models/attached/one_test.rb index 7843ede045a..a65da0cb1f1 100644 --- a/activestorage/test/models/attached/one_test.rb +++ b/activestorage/test/models/attached/one_test.rb @@ -688,7 +688,7 @@ class ActiveStorage::OneAttachedTest < ActiveSupport::TestCase Rails.configuration.active_storage.stub(:service, nil) do error = assert_raises RuntimeError do User.class_eval do - has_one_attached :featured_photos + has_one_attached :featured_photo end end