diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-07-01 13:10:15 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-07-08 00:14:37 +0300 |
commit | 25ba11a2aad9571e4759cdc711199634e3392c5b (patch) | |
tree | c68aae18a695f1412c141b91835e1ce4e304ddd6 /spec/models/deployment_spec.rb | |
parent | a2cd33d1baa3de0774ebfcff2e6bbffffcb5d025 (diff) |
Remove un-used method
We stopped calling the fallback so we can remove this now
Diffstat (limited to 'spec/models/deployment_spec.rb')
-rw-r--r-- | spec/models/deployment_spec.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/models/deployment_spec.rb b/spec/models/deployment_spec.rb index 79647c5719c..d4e631f109b 100644 --- a/spec/models/deployment_spec.rb +++ b/spec/models/deployment_spec.rb @@ -322,32 +322,4 @@ describe Deployment do end end end - - describe '#deployment_platform_cluster' do - let(:deployment) { create(:deployment) } - let(:project) { deployment.project } - let(:environment) { deployment.environment } - - subject { deployment.deployment_platform_cluster } - - before do - expect(project).to receive(:deployment_platform) - .with(environment: environment.name).and_call_original - end - - context 'project has no deployment platform' do - before do - expect(project.clusters).to be_empty - end - - it { is_expected.to be_nil } - end - - context 'project has a deployment platform' do - let!(:cluster) { create(:cluster, projects: [project]) } - let!(:platform) { create(:cluster_platform_kubernetes, cluster: cluster) } - - it { is_expected.to eq cluster } - end - end end |