mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 02:50:46 +00:00
Add coverage for non large format media
This commit is contained in:
parent
21ce99f746
commit
e8c0284e55
|
|
@ -87,4 +87,17 @@ RSpec.describe 'Media' do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'GET /media/:medium_id/player' do
|
||||
context 'when media type is not large format type' do
|
||||
let(:media) { Fabricate :media_attachment }
|
||||
|
||||
it 'responds with not found' do
|
||||
get medium_player_path(media)
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(404)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user