summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMickaël Canévet <mickael.canevet@camptocamp.com>2015-06-26 11:10:59 +0200
committerMickaël Canévet <mickael.canevet@camptocamp.com>2015-06-26 11:10:59 +0200
commit2832d584bcfdf49e7dbda81c7c98975b6c76f465 (patch)
tree039767bfc8d46ac42a2baf70ea3960da9ff521fe
parent3cd11b8b23ac96958da03a22f38ba73032c7b1b2 (diff)
Fix strict_variables activation with rspec-puppet 2.2
-rw-r--r--spec/spec_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index c5b11ae..94d30d5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -11,7 +11,7 @@ RSpec.configure do |c|
@old_env = {}
ENV.each_key {|k| @old_env[k] = ENV[k]}
- Puppet.settings[:strict_variables]=true if Gem::Version.new(Puppet::PUPPETVERSION) >= Gem::Version.new('3.5')
+ c.strict_variables = Gem::Version.new(Puppet.version) >= Gem::Version.new('3.5')
Puppet.features.stubs(:root?).returns(true)
end