Commit 42df7dcd authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in spec/controllers/projects/branches_controller_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5c2c9a3f
...@@ -130,13 +130,6 @@ describe Projects::BranchesController do ...@@ -130,13 +130,6 @@ describe Projects::BranchesController do
expect(response).to have_gitlab_http_status(302) expect(response).to have_gitlab_http_status(302)
end end
end end
<<<<<<< HEAD
context 'when user configured kubernetes from Integration > Kubernetes' do
before do
project.services << build(:kubernetes_service)
end
=======
context 'when user configured kubernetes from Integration > Kubernetes' do context 'when user configured kubernetes from Integration > Kubernetes' do
before do before do
...@@ -158,17 +151,18 @@ describe Projects::BranchesController do ...@@ -158,17 +151,18 @@ describe Projects::BranchesController do
result = { status: :success, branch: double(name: branch) } result = { status: :success, branch: double(name: branch) }
create(:cluster, :provided_by_gcp, projects: [project]) create(:cluster, :provided_by_gcp, projects: [project])
>>>>>>> origin/master
it_behaves_like 'same behavior between KubernetesService and Platform::Kubernetes' expect_any_instance_of(CreateBranchService).to receive(:execute).and_return(result)
end expect(SystemNoteService).to receive(:new_issue_branch).and_return(true)
context 'when user configured kubernetes from CI/CD > Clusters' do post :create,
before do namespace_id: project.namespace.to_param,
create(:cluster, :provided_by_gcp, projects: [project]) project_id: project.to_param,
end branch_name: branch,
issue_iid: issue.iid
it_behaves_like 'same behavior between KubernetesService and Platform::Kubernetes' expect(response.location).to include(project_new_blob_path(project, branch))
expect(response).to have_gitlab_http_status(302)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment