Add coverage for non large format media

This commit is contained in:
Matt Jankowski 2025-08-28 08:42:15 -04:00
parent 21ce99f746
commit e8c0284e55

View File

@ -87,4 +87,17 @@ RSpec.describe 'Media' do
end end
end 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 end