diff options
Diffstat (limited to 'spec/controllers/projects/pipelines_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/pipelines_controller_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/controllers/projects/pipelines_controller_spec.rb b/spec/controllers/projects/pipelines_controller_spec.rb index aa6415d58e8..53d0ebda2d5 100644 --- a/spec/controllers/projects/pipelines_controller_spec.rb +++ b/spec/controllers/projects/pipelines_controller_spec.rb @@ -72,8 +72,12 @@ describe Projects::PipelinesController do describe 'GET status.json' do context 'when accessing status' do + let(:status) do + Gitlab::Ci::Status::Success.new(double('object'), double('user')) + end + before do - pipeline = create(:ci_pipeline, project: project, status: 'success') + pipeline = create(:ci_pipeline, project: project, status: :success) get :status, namespace_id: project.namespace, project_id: project, id: pipeline.id, @@ -82,7 +86,7 @@ describe Projects::PipelinesController do it 'return a correct pipeline status' do expect(response).to have_http_status(:ok) - expect(json_response['details']['status']['text']).to eq 'passed' + expect(json_response['favicon']).to eq status.favicon end end end |