diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-04 21:10:08 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-04 21:10:08 +0200 |
commit | 54831bd44bdf7f7b19ac3a129ebf6384549d9c63 (patch) | |
tree | 176993bcaddc37494e56456ea00bc4d0199b328b /spec | |
parent | f16ac0efda68cfb6819e784dbec5609b10e8de7d (diff) | |
download | gitlab-ce-54831bd44bdf7f7b19ac3a129ebf6384549d9c63.tar.gz |
Updated messages and notices
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/gcp/cluster_spec.rb | 26 | ||||
-rw-r--r-- | spec/models/project_spec.rb | 1 |
2 files changed, 1 insertions, 26 deletions
diff --git a/spec/models/gcp/cluster_spec.rb b/spec/models/gcp/cluster_spec.rb index 5e4c35e24ff..cf3036cefce 100644 --- a/spec/models/gcp/cluster_spec.rb +++ b/spec/models/gcp/cluster_spec.rb @@ -237,30 +237,4 @@ describe Gcp::Cluster do end end end - - describe '#destroy' do - subject { cluster.destroy } - - let(:cluster) { create(:gcp_cluster) } - - context 'when status is created' do - before do - cluster.make_created! - end - - it 'destory the cluster' do - is_expected.to eq(cluster) - end - end - - context 'when status is creating' do - before do - cluster.make_creating! - end - - it 'does not destory the cluster' do - is_expected.to be_nil - end - end - end end diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 176bb568cbe..e62bfaf22ba 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -76,6 +76,7 @@ describe Project do it { is_expected.to have_many(:uploads).dependent(:destroy) } it { is_expected.to have_many(:pipeline_schedules) } it { is_expected.to have_many(:members_and_requesters) } + it { is_expected.to have_one(:cluster) } context 'after initialized' do it "has a project_feature" do |