Commit 1894c6eb authored by Thong Kuah's avatar Thong Kuah

Add facade which will always return nil in CE

This method will be overridden in EE
parent e6fb109d
......@@ -53,6 +53,11 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated
raise NotImplementedError
end
# Will be overidden in EE
def environments_cluster_path(cluster)
nil
end
def empty_state_help_text
nil
end
......
......@@ -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
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