Pull out https/hostname setup for request specs to shared config (#31622)
This commit is contained in:
parent
dc2f67f69b
commit
ef4920c6c9
5 changed files with 21 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue