From 6b6e5b766fb8ae8d1bca8275753515d4b87c9540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 22 Nov 2023 16:35:39 -1000 Subject: [PATCH] Remove legacy top-scope syntax --- README.md | 2 +- spec/acceptance/class_spec.rb | 2 +- spec/defines/check_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 83c7c61..1485d4f 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ You can use the module [stahnma-epel](https://forge.puppetlabs.com/stahnma/epel) ### Beginning with monit ```puppet -include ::monit +include monit ``` ## Usage diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb index 2141f92..6bf5086 100644 --- a/spec/acceptance/class_spec.rb +++ b/spec/acceptance/class_spec.rb @@ -5,7 +5,7 @@ # Using puppet_apply as a helper it 'works with no errors' do pp = <<-EOS - include ::monit + include monit EOS # Run it twice and test for idempotency diff --git a/spec/defines/check_spec.rb b/spec/defines/check_spec.rb index 35594e7..834fd28 100644 --- a/spec/defines/check_spec.rb +++ b/spec/defines/check_spec.rb @@ -2,7 +2,7 @@ describe 'monit::check' do let :pre_condition do - 'include ::monit' + 'include monit' end let(:title) { 'test' }