diff --git a/spec/requests/api_spec.rb b/spec/requests/api_spec.rb index 7a7c1cfa1..55afdc147 100644 --- a/spec/requests/api_spec.rb +++ b/spec/requests/api_spec.rb @@ -35,6 +35,7 @@ it 'returns not authorized' do subject.call + expect(response.body).to eq('What is happening, why a 500 when the tests pass locally?') expect(response).to have_http_status(:unauthorized) expect(response.code.to_i).to eq(401) end @@ -102,6 +103,7 @@ it 'returns not authorized' do subject.call + expect(response.body).to eq('What is happening, why a 500 when the tests pass locally?') expect(response).to have_http_status(:unauthorized) expect(response.code.to_i).to eq(401) end @@ -170,6 +172,7 @@ it 'returns not authorized' do subject.call + expect(response.body).to eq('What is happening, why a 500 when the tests pass locally?') expect(response).to have_http_status(:unauthorized) expect(response.code.to_i).to eq(401) end @@ -227,6 +230,7 @@ it 'returns not authorized' do subject.call + expect(response.body).to eq('What is happening, why a 500 when the tests pass locally?') expect(response).to have_http_status(:unauthorized) expect(response.code.to_i).to eq(401) end