diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-05-06 16:24:14 +0000 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2019-05-06 16:24:14 +0000 |
commit | c8a530a319d6e2550f41cbf61203e6b2712dc7e0 (patch) | |
tree | 0c4dced685d5f8007853d3b977346f436dd44668 /spec | |
parent | 4ebbfb9f1e95091a7753a10e12d989d72f4332f8 (diff) | |
download | gitlab-ce-c8a530a319d6e2550f41cbf61203e6b2712dc7e0.tar.gz |
Show health graphs on group-level
Tweak cluster helper and refactor its specs.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/presenters/group_clusterable_presenter_spec.rb | 6 | ||||
-rw-r--r-- | spec/presenters/project_clusterable_presenter_spec.rb | 6 | ||||
-rw-r--r-- | spec/services/clusters/applications/create_service_spec.rb | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/spec/presenters/group_clusterable_presenter_spec.rb b/spec/presenters/group_clusterable_presenter_spec.rb index fa77273f6aa..cb623fa1fa4 100644 --- a/spec/presenters/group_clusterable_presenter_spec.rb +++ b/spec/presenters/group_clusterable_presenter_spec.rb @@ -82,4 +82,10 @@ describe GroupClusterablePresenter do it { is_expected.to eq(group_cluster_path(group, cluster)) } end + + describe '#clusters_path' do + subject { presenter.clusters_path } + + it { is_expected.to eq(group_clusters_path(group)) } + end end diff --git a/spec/presenters/project_clusterable_presenter_spec.rb b/spec/presenters/project_clusterable_presenter_spec.rb index 6786a84243f..e5857f75aed 100644 --- a/spec/presenters/project_clusterable_presenter_spec.rb +++ b/spec/presenters/project_clusterable_presenter_spec.rb @@ -82,4 +82,10 @@ describe ProjectClusterablePresenter do it { is_expected.to eq(project_cluster_path(project, cluster)) } end + + describe '#clusters_path' do + subject { presenter.clusters_path } + + it { is_expected.to eq(project_clusters_path(project)) } + end end diff --git a/spec/services/clusters/applications/create_service_spec.rb b/spec/services/clusters/applications/create_service_spec.rb index 20555873503..bb86a742f0e 100644 --- a/spec/services/clusters/applications/create_service_spec.rb +++ b/spec/services/clusters/applications/create_service_spec.rb @@ -151,8 +151,8 @@ describe Clusters::Applications::CreateService do 'helm' | :application_helm | true | false 'ingress' | :application_ingress | true | true 'runner' | :application_runner | true | true + 'prometheus' | :application_prometheus | true | true 'jupyter' | :application_jupyter | false | true - 'prometheus' | :application_prometheus | false | true end with_them do |