Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix strict_variables activation with rspec-puppet 2.2
  • Loading branch information
mcanevet committed Jun 26, 2015
1 parent 6d7547a commit 04d2d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -11,7 +11,7 @@
@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

Expand Down

0 comments on commit 04d2d2e

Please sign in to comment.