Skip to content

Commit

Permalink
ehehehe
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jan 17, 2024
1 parent db443a7 commit db559a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
describe 'GET #export' do
it 'renders instances' do
Fabricate(:domain_block, domain: 'bad.domain', severity: 'silence', public_comment: 'bad server')
Fabricate(:domain_block, domain: 'worse.domain', severity: 'suspend', reject_media: true, reject_reports: true, public_comment: 'worse server', private_comment: 'horrible server', obfuscate: true)
Fabricate(:domain_block, domain: 'worse.domain', severity: 'suspend', reject_media: true, reject_reports: true, public_comment: 'worse server', private_comment: 'worse server :(', obfuscate: true)
Fabricate(:domain_block, domain: 'reject.media', severity: 'noop', reject_media: true, public_comment: 'reject media and test unicode characters ♥')
Fabricate(:domain_block, domain: 'no.op', severity: 'noop', public_comment: 'noop')

Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/files/domain_blocks.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#domain,#severity,#reject_media,#reject_reports,#public_comment,#obfuscate
#domain,#severity,#reject_media,#reject_reports,#public_comment,#private_comment,#obfuscate
bad.domain,silence,false,false,bad server,false
worse.domain,suspend,true,true,worse server,true
worse.domain,suspend,true,true,worse server,worse server :(,true
reject.media,noop,true,false,reject media and test unicode characters ♥,false
4 changes: 2 additions & 2 deletions spec/models/media_attachment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@
describe 'avif' do
let(:media) { Fabricate(:media_attachment, file: attachment_fixture('600x400.avif')) }

it_behaves_like 'static 600x400 image', 'image/avif', '.jpeg'
it_behaves_like 'static 600x400 image', 'image/avif', '.avif'
end

describe 'heic' do
let(:media) { Fabricate(:media_attachment, file: attachment_fixture('600x400.heic')) }

it_behaves_like 'static 600x400 image', 'image/avif', '.jpeg'
it_behaves_like 'static 600x400 image', 'image/avif', '.avif'
end

describe 'base64-encoded image' do
Expand Down

0 comments on commit db559a6

Please sign in to comment.