Skip to content

Commit

Permalink
stop complaining please
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jan 17, 2024
1 parent fc80839 commit 33c0c7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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', obfuscate: true)
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: '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
10 changes: 2 additions & 8 deletions spec/models/media_attachment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,23 +143,17 @@

it_behaves_like 'static 600x400 image', 'image/webp', '.webp'
end

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

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

Check failure on line 146 in spec/models/media_attachment_spec.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
describe 'avif' do
let(:media) { Fabricate(:media_attachment, file: attachment_fixture('600x400.avif')) }

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

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

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

describe 'base64-encoded image' do
Expand Down

0 comments on commit 33c0c7f

Please sign in to comment.