mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 01:09:55 +00:00
Add coverage for media#player scenarios (#35947)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user