Commit ee87ee7e authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in spec/services/clusters/create_service_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent d42ff99d
......@@ -45,7 +45,6 @@ describe Clusters::CreateService do
expect { subject }
.to change { Clusters::Cluster.count }.by(1)
.and change { Clusters::Providers::Gcp.count }.by(1)
<<<<<<< HEAD
expect(subject.name).to eq('test-cluster')
expect(subject.user).to eq(user)
......@@ -59,21 +58,6 @@ describe Clusters::CreateService do
end
end
=======
expect(subject.name).to eq('test-cluster')
expect(subject.user).to eq(user)
expect(subject.project).to eq(project)
expect(subject.provider.gcp_project_id).to eq('gcp-project')
expect(subject.provider.zone).to eq('us-central1-a')
expect(subject.provider.num_nodes).to eq(1)
expect(subject.provider.machine_type).to eq('machine_type-a')
expect(subject.provider.access_token).to eq(access_token)
expect(subject.platform).to be_nil
end
end
>>>>>>> origin/master
shared_examples 'error' do
it 'returns an error' do
expect(ClusterProvisionWorker).not_to receive(:perform_async)
......@@ -97,14 +81,6 @@ describe Clusters::CreateService do
end
context 'when project has a cluster' do
<<<<<<< HEAD
include_context 'valid params'
let!(:cluster) { create(:cluster, :provided_by_gcp, projects: [project]) }
it 'does not create a cluster' do
expect(ClusterProvisionWorker).not_to receive(:perform_async)
expect { subject }.to raise_error(ArgumentError).and change { Clusters::Cluster.count }.by(0)
=======
let!(:cluster) { create(:cluster, :provided_by_gcp, projects: [project]) }
before do
......@@ -140,7 +116,6 @@ describe Clusters::CreateService do
expect(ClusterProvisionWorker).not_to receive(:perform_async)
expect { subject }.to raise_error(ArgumentError).and change { Clusters::Cluster.count }.by(0)
end
>>>>>>> origin/master
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