diff options
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r-- | spec/controllers/projects/services_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/services_controller_spec.rb b/spec/controllers/projects/services_controller_spec.rb index 7aa2492edf6..4fe1e848965 100644 --- a/spec/controllers/projects/services_controller_spec.rb +++ b/spec/controllers/projects/services_controller_spec.rb @@ -64,14 +64,14 @@ describe Projects::ServicesController do end context 'failure' do - it 'returns 500 status code and the error message' do + it 'returns success status code and the error message' do expect(HipChat::Client).to receive(:new).with('hipchat_token_p', anything).and_raise('Bad test') put :test, namespace_id: project.namespace.id, project_id: project.id, id: service.id, service: service_params expect(response.status).to eq(200) expect(JSON.parse(response.body)). - to eq('error' => true, 'message' => 'Test failed', 'service_response' => 'Bad test') + to eq('error' => true, 'message' => 'Test failed.', 'service_response' => 'Bad test') end end end |