Add facade which will always return nil in CE
This method will be overridden in EE
This commit is contained in:
		
							parent
							
								
									e6fb109d45
								
							
						
					
					
						commit
						1894c6ebe8
					
				|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue