Remove deprecated usage of imagemagick (#37488)
This commit is contained in:
1 parent
3a84b73d80
commit
157d8c0d99
19 files changed
+37
-224
No files matched your search
@@ -102,7 +102,7 @@ RSpec.describe 'Media' do
|
||||
allow(user.account).to receive(:media_attachments).and_return(media_attachments)
|
||||
end
|
||||
|
||||
context 'when imagemagick cannot identify the file type' do
|
||||
context 'when file type cannot be identified' do
|
||||
it 'returns http unprocessable entity' do
|
||||
allow(media_attachments).to receive(:create!).and_raise(Paperclip::Errors::NotIdentifiedByImageMagickError)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ RSpec.describe 'Media API', :attachment_processing do
|
||||
allow(user.account).to receive(:media_attachments).and_return(media_attachments)
|
||||
end
|
||||
|
||||
context 'when imagemagick cannot identify the file type' do
|
||||
context 'when file type cannot be identified' do
|
||||
before do
|
||||
allow(media_attachments).to receive(:create!).and_raise(Paperclip::Errors::NotIdentifiedByImageMagickError)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user