2
0

Pull out https/hostname setup for request specs to shared config (#31622)

This commit is contained in:
Matt Jankowski
2024-09-03 11:28:57 -04:00
committed by GitHub
parent dc2f67f69b
commit ef4920c6c9
5 changed files with 21 additions and 11 deletions

View File

@@ -10,12 +10,11 @@ describe 'API V1 Streaming' do
Rails.configuration.x.streaming_api_base_url = before
end
let(:headers) { { 'Host' => Rails.configuration.x.web_domain } }
context 'with streaming api on same host' do
describe 'GET /api/v1/streaming' do
it 'raises ActiveRecord::RecordNotFound' do
get '/api/v1/streaming', headers: headers
integration_session.https!(false)
get '/api/v1/streaming'
expect(response).to have_http_status(404)
end