Коммит 1894c6eb создал по автору Thong Kuah's avatar Thong Kuah
Просмотр файлов

Add facade which will always return nil in CE

This method will be overridden in EE
владелец e6fb109d
......@@ -53,6 +53,11 @@ def cluster_path(cluster, params = {})
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 @@
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
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать