Add coverage for media#player scenarios (#35947)

This commit is contained in:
Matt Jankowski
2025-11-21 09:46:29 -05:00
committed by GitHub
parent d967137adf
commit 585545d0d5
2 changed files with 49 additions and 8 deletions

View File

@@ -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