Commit f07d445b authored by James Fargher's avatar James Fargher

Remove duplicate clusterable presenter method

parent 0aeef733
...@@ -52,10 +52,6 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated ...@@ -52,10 +52,6 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated
raise NotImplementedError raise NotImplementedError
end end
def clusters_path(params = {})
raise NotImplementedError
end
def empty_state_help_text def empty_state_help_text
nil nil
end end
......
...@@ -24,11 +24,6 @@ class GroupClusterablePresenter < ClusterablePresenter ...@@ -24,11 +24,6 @@ class GroupClusterablePresenter < ClusterablePresenter
group_cluster_path(clusterable, cluster, params) group_cluster_path(clusterable, cluster, params)
end end
override :clusters_path
def clusters_path(params = {})
group_clusters_path(clusterable, params)
end
override :empty_state_help_text override :empty_state_help_text
def empty_state_help_text def empty_state_help_text
s_('ClusterIntegration|Adding an integration to your group will share the cluster across all your projects.') s_('ClusterIntegration|Adding an integration to your group will share the cluster across all your projects.')
......
...@@ -24,11 +24,6 @@ class ProjectClusterablePresenter < ClusterablePresenter ...@@ -24,11 +24,6 @@ class ProjectClusterablePresenter < ClusterablePresenter
project_cluster_path(clusterable, cluster, params) project_cluster_path(clusterable, cluster, params)
end end
override :clusters_path
def clusters_path(params = {})
project_clusters_path(clusterable, params)
end
override :sidebar_text override :sidebar_text
def sidebar_text def sidebar_text
s_('ClusterIntegration|With a Kubernetes cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way.') s_('ClusterIntegration|With a Kubernetes cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way.')
......
...@@ -82,10 +82,4 @@ describe GroupClusterablePresenter do ...@@ -82,10 +82,4 @@ describe GroupClusterablePresenter do
it { is_expected.to eq(group_cluster_path(group, cluster)) } it { is_expected.to eq(group_cluster_path(group, cluster)) }
end end
describe '#clusters_path' do
subject { presenter.clusters_path }
it { is_expected.to eq(group_clusters_path(group)) }
end
end end
...@@ -82,10 +82,4 @@ describe ProjectClusterablePresenter do ...@@ -82,10 +82,4 @@ describe ProjectClusterablePresenter do
it { is_expected.to eq(project_cluster_path(project, cluster)) } it { is_expected.to eq(project_cluster_path(project, cluster)) }
end end
describe '#clusters_path' do
subject { presenter.clusters_path }
it { is_expected.to eq(project_clusters_path(project)) }
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