diff --git a/.travis.yml b/.travis.yml index 879a605..e5cff13 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,17 @@ --- sudo: false language: ruby cache: bundler bundler_args: --without development -before_install: rm Gemfile.lock || true rvm: - 1.9.3 - - 2.0.0 - - 2.1.4 + - 2.1.6 + - 2.2.2 env: - - PUPPET_VERSION="~> 3.3.0" - - PUPPET_VERSION="~> 3.7.0" - - PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER="yes" + - PUPPET_VERSION="~> 3.0" + - PUPPET_VERSION="~> 4.0" matrix: exclude: - - rvm: 2.1.4 - env: PUPPET_VERSION="~> 3.3.0" - - rvm: 2.1.4 - env: PUPPET_VERSION="~> 3.3.0" + - rvm: 2.2.2 + env: PUPPET_VERSION="~> 3.0" script: bundle exec rake spec diff --git a/Gemfile b/Gemfile index 2da60a2..8baf230 100644 --- a/Gemfile +++ b/Gemfile @@ -1,16 +1,16 @@ source 'https://rubygems.org' group :test do gem 'rake' - gem 'puppet', ENV['PUPPET_VERSION'] || '~> 3.7.0' + gem 'puppet', ENV['PUPPET_VERSION'] || '~> 4.0' gem 'rspec-puppet' gem 'rspec-puppet-facts', :require => false - gem 'puppetlabs_spec_helper' + gem 'puppetlabs_spec_helper', '~> 0.10.2' gem 'metadata-json-lint' end group :development do gem 'travis' gem 'vagrant-wrapper' gem 'guard-rake' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 11bd0a4..9196088 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,7 @@ require 'puppetlabs_spec_helper/module_spec_helper' require 'rspec-puppet-facts' include RspecPuppetFacts shared_context :unsupported do - let(:facts) { { :osfamily => 'Unsupported', } } + let(:facts) { { osfamily: 'Unsupported' } } end