summaryrefslogtreecommitdiff
path: root/spec/presenters
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-09-02 20:15:15 +1200
committerThong Kuah <tkuah@gitlab.com>2019-09-03 11:29:57 +1200
commit1894c6ebe83981d1a6d4dfdc4cb551c2184966c7 (patch)
treebb56c495808370f67231a82d37d6668f4fe7e014 /spec/presenters
parente6fb109d459d9aed8401df5faab4f7c91f8f3429 (diff)
downloadgitlab-ce-1894c6ebe83981d1a6d4dfdc4cb551c2184966c7.tar.gz
Add facade which will always return nil in CEclusterable_cluster_environments_path
This method will be overridden in EE
Diffstat (limited to 'spec/presenters')
-rw-r--r--spec/presenters/clusterable_presenter_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/presenters/clusterable_presenter_spec.rb b/spec/presenters/clusterable_presenter_spec.rb
index 05afe5347d1..47ccc59ae45 100644
--- a/spec/presenters/clusterable_presenter_spec.rb
+++ b/spec/presenters/clusterable_presenter_spec.rb
@@ -78,4 +78,13 @@ describe ClusterablePresenter do
it_behaves_like 'appropriate member permissions'
end
end
+
+ describe '#environments_cluster_path' do
+ subject { described_class.new(clusterable).environments_cluster_path(cluster) }
+
+ let(:clusterable) { create(:group) }
+ let(:cluster) { create(:cluster_for_group, groups: [clusterable]) }
+
+ it { is_expected.to be_nil }
+ end
end