Disable paperclip processing in specs (#25359)
This commit is contained in:
parent
c81f59583c
commit
c94bb9ba9a
4 changed files with 9 additions and 3 deletions
|
@ -17,7 +17,7 @@ shared_examples 'AccountAvatar' do |fabricator|
|
|||
end
|
||||
end
|
||||
|
||||
describe 'base64-encoded files' do
|
||||
describe 'base64-encoded files', paperclip_processing: true do
|
||||
let(:base64_attachment) { "data:image/jpeg;base64,#{Base64.encode64(attachment_fixture('attachment.jpg').read)}" }
|
||||
let(:account) { Fabricate(fabricator, avatar: base64_attachment) }
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples 'AccountHeader' do |fabricator|
|
||||
describe 'base64-encoded files' do
|
||||
describe 'base64-encoded files', paperclip_processing: true do
|
||||
let(:base64_attachment) { "data:image/jpeg;base64,#{Base64.encode64(attachment_fixture('attachment.jpg').read)}" }
|
||||
let(:account) { Fabricate(fabricator, header: base64_attachment) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue