0
0
Fork 0

Fix RSpec/MetadataStyle cop in spec/ (#27729)

This commit is contained in:
Matt Jankowski 2023-11-06 09:28:20 -05:00 committed by GitHub
parent e4e752c26e
commit 949f5eb860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 11 deletions

View file

@ -127,19 +127,19 @@ RSpec.describe 'Media' do
end
end
context 'with image/jpeg', paperclip_processing: true do
context 'with image/jpeg', :paperclip_processing do
let(:params) { { file: fixture_file_upload('attachment.jpg', 'image/jpeg'), description: 'jpeg image' } }
it_behaves_like 'a successful media upload', 'image'
end
context 'with image/gif', paperclip_processing: true do
context 'with image/gif', :paperclip_processing do
let(:params) { { file: fixture_file_upload('attachment.gif', 'image/gif') } }
it_behaves_like 'a successful media upload', 'image'
end
context 'with video/webm', paperclip_processing: true do
context 'with video/webm', :paperclip_processing do
let(:params) { { file: fixture_file_upload('attachment.webm', 'video/webm') } }
it_behaves_like 'a successful media upload', 'gifv'