diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-18 21:10:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-18 21:10:06 +0000 |
commit | cb0a625459525122d2736a895a728edb3b8ea4ff (patch) | |
tree | a3a830de41cdc0eb71c380f8e751faa1410a724a /spec/helpers/environments_helper_spec.rb | |
parent | dd6e32bf47776514b8fe2abcfe7998503f16baab (diff) | |
download | gitlab-ce-cb0a625459525122d2736a895a728edb3b8ea4ff.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers/environments_helper_spec.rb')
-rw-r--r-- | spec/helpers/environments_helper_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/helpers/environments_helper_spec.rb b/spec/helpers/environments_helper_spec.rb index 96869fcc777..22867a5b652 100644 --- a/spec/helpers/environments_helper_spec.rb +++ b/spec/helpers/environments_helper_spec.rb @@ -122,7 +122,7 @@ RSpec.describe EnvironmentsHelper do end context 'has_managed_prometheus' do - context 'without prometheus service' do + context 'without prometheus integration' do it "doesn't have managed prometheus" do expect(metrics_data).to include( 'has_managed_prometheus' => 'false' @@ -130,12 +130,12 @@ RSpec.describe EnvironmentsHelper do end end - context 'with prometheus service' do - let_it_be(:prometheus_service) { create(:prometheus_service, project: project) } + context 'with prometheus integration' do + let_it_be(:prometheus_integration) { create(:prometheus_integration, project: project) } - context 'when manual prometheus service is active' do + context 'when manual prometheus integration is active' do it "doesn't have managed prometheus" do - prometheus_service.update!(manual_configuration: true) + prometheus_integration.update!(manual_configuration: true) expect(metrics_data).to include( 'has_managed_prometheus' => 'false' @@ -143,9 +143,9 @@ RSpec.describe EnvironmentsHelper do end end - context 'when prometheus service is inactive' do + context 'when prometheus integration is inactive' do it "doesn't have managed prometheus" do - prometheus_service.update!(manual_configuration: false) + prometheus_integration.update!(manual_configuration: false) expect(metrics_data).to include( 'has_managed_prometheus' => 'false' |