Showing with 6 additions and 2 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 metadata.json
  3. +1 −1 spec/spec_helper.rb
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2015-06-26 - Release 0.1.15

Fix strict_variables activation with rspec-puppet 2.2

## 2015-05-28 - Release 0.1.14

Add beaker_spec_helper to Gemfile
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "camptocamp-systemd",
"version": "0.1.14",
"version": "0.1.15",
"author": "Camptocamp",
"summary": "Puppet Systemd module",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
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