mirror of https://github.com/rails/rails
Fix attachment to has_many_attached
This commit is contained in:
parent
6d8df0af70
commit
380cd17ae4
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue