Commit aa34c693 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'clusterable_cluster_environments_path' into 'master'

Add #environments_cluster_path which will always return nil in CE

See merge request gitlab-org/gitlab-ce!32527
parents d548766c 1894c6eb
...@@ -53,6 +53,11 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated ...@@ -53,6 +53,11 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated
raise NotImplementedError raise NotImplementedError
end end
# Will be overidden in EE
def environments_cluster_path(cluster)
nil
end
def empty_state_help_text def empty_state_help_text
nil nil
end end
......
...@@ -78,4 +78,13 @@ describe ClusterablePresenter do ...@@ -78,4 +78,13 @@ describe ClusterablePresenter do
it_behaves_like 'appropriate member permissions' it_behaves_like 'appropriate member permissions'
end end
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 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