diff options
Diffstat (limited to 'spec/controllers')
3 files changed, 12 insertions, 12 deletions
diff --git a/spec/controllers/projects/builds_controller_spec.rb b/spec/controllers/projects/builds_controller_spec.rb index 3abf3fa1aeb..53a307aa362 100644 --- a/spec/controllers/projects/builds_controller_spec.rb +++ b/spec/controllers/projects/builds_controller_spec.rb @@ -16,9 +16,9 @@ describe Projects::BuildsController do pipeline = create(:ci_pipeline, project: project) build = create(:ci_build, pipeline: pipeline, status: 'success') get :status, namespace_id: project.namespace, - project_id: project, - id: build.id, - format: :json + project_id: project, + id: build.id, + format: :json end it 'returns pipeline status via BuildSerializer' do diff --git a/spec/controllers/projects/merge_requests_controller_spec.rb b/spec/controllers/projects/merge_requests_controller_spec.rb index 433dbdb37bf..2cbb46d8274 100644 --- a/spec/controllers/projects/merge_requests_controller_spec.rb +++ b/spec/controllers/projects/merge_requests_controller_spec.rb @@ -1183,13 +1183,13 @@ describe Projects::MergeRequestsController do context 'when accessing status' do before do create(:ci_pipeline, project: merge_request.source_project, - ref: merge_request.source_branch, - sha: merge_request.diff_head_sha, - status: 'success') + ref: merge_request.source_branch, + sha: merge_request.diff_head_sha, + status: 'success') get :status, namespace_id: project.namespace, - project_id: project, - id: merge_request.iid, - format: :json + project_id: project, + id: merge_request.iid, + format: :json end it 'returns pipeline status via PipelineSerializer' do diff --git a/spec/controllers/projects/pipelines_controller_spec.rb b/spec/controllers/projects/pipelines_controller_spec.rb index b8ab9933f33..5a9e02331f7 100644 --- a/spec/controllers/projects/pipelines_controller_spec.rb +++ b/spec/controllers/projects/pipelines_controller_spec.rb @@ -75,9 +75,9 @@ describe Projects::PipelinesController do before do pipeline = create(:ci_pipeline, project: project, status: 'success') get :status, namespace_id: project.namespace, - project_id: project, - id: pipeline.id, - format: :json + project_id: project, + id: pipeline.id, + format: :json end it 'returns pipeline status via PipelineSerializer' do |