diff --git a/.travis.yml b/.travis.yml index 7d9d40f..38bc2ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ env: - PUPPET_GEM_VERSION="~> 2.7" - PUPPET_GEM_VERSION="~> 3.3" - PUPPET_GEM_VERSION="> 3.3" - - PUPPET_GEM_VERSION="~> 3.5.0.rc3" STRICT_VARIABLES="yes" + - PUPPET_GEM_VERSION="~> 3.5.0" global: - PUBLISHER_LOGIN=puppetlabs - secure: "FInoEwh3G4Auqp+OOdIc20lDLqrV6FHzWsM8ercHWjhDRD23VI49B1qqehWjaI8lKM3D5mTvdup23IVQBJo8M0rR/yfju1NhMYFTQ5bcJIrbQ3fn4n/zSaE8gLTOtHwzjSlqTJAYjxOAnp1VdMZngqpU/RYfSk68zJD34NqfovA=" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0f510bb..2471da9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,7 +14,7 @@ RSpec.configure do |c| @old_env = {} ENV.each_key {|k| @old_env[k] = ENV[k]} - if ENV['STRICT_VARIABLES'] == 'yes' + if Gem::Version.new(`puppet --version`) >= Gem::Version.new('3.5') Puppet.settings[:strict_variables]=true end end