diff options
author | João Cunha <j.a.cunha@gmail.com> | 2019-03-04 10:08:53 +0000 |
---|---|---|
committer | jerasmus <jerasmus@gitlab.com> | 2019-03-05 08:32:51 +0200 |
commit | 1186a6fd5408737f1995ac16ffc18f6aaf431cce (patch) | |
tree | d1527b51e86d197ddd216190efeb41fb39d95bc1 /spec/presenters | |
parent | f8234d9a086a43a95698da13d2734fe62ddb9ad7 (diff) | |
download | gitlab-ce-1186a6fd5408737f1995ac16ffc18f6aaf431cce.tar.gz |
Sends update route to the client
- extends presenters to include update endpoint path
- sends path to the client on clusters clusters show view.
Diffstat (limited to 'spec/presenters')
-rw-r--r-- | spec/presenters/group_clusterable_presenter_spec.rb | 8 | ||||
-rw-r--r-- | spec/presenters/project_clusterable_presenter_spec.rb | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/spec/presenters/group_clusterable_presenter_spec.rb b/spec/presenters/group_clusterable_presenter_spec.rb index 205160742bf..fa77273f6aa 100644 --- a/spec/presenters/group_clusterable_presenter_spec.rb +++ b/spec/presenters/group_clusterable_presenter_spec.rb @@ -69,6 +69,14 @@ describe GroupClusterablePresenter do it { is_expected.to eq(install_applications_group_cluster_path(group, cluster, application)) } end + describe '#update_applications_cluster_path' do + let(:application) { :helm } + + subject { presenter.update_applications_cluster_path(cluster, application) } + + it { is_expected.to eq(update_applications_group_cluster_path(group, cluster, application)) } + end + describe '#cluster_path' do subject { presenter.cluster_path(cluster) } diff --git a/spec/presenters/project_clusterable_presenter_spec.rb b/spec/presenters/project_clusterable_presenter_spec.rb index c50d90ae1e8..6786a84243f 100644 --- a/spec/presenters/project_clusterable_presenter_spec.rb +++ b/spec/presenters/project_clusterable_presenter_spec.rb @@ -69,6 +69,14 @@ describe ProjectClusterablePresenter do it { is_expected.to eq(install_applications_project_cluster_path(project, cluster, application)) } end + describe '#update_applications_cluster_path' do + let(:application) { :helm } + + subject { presenter.update_applications_cluster_path(cluster, application) } + + it { is_expected.to eq(update_applications_project_cluster_path(project, cluster, application)) } + end + describe '#cluster_path' do subject { presenter.cluster_path(cluster) } |