Skip to content

Commit

Permalink
Update tests for rspec-puppet 2
Browse files Browse the repository at this point in the history
This patch uses `catalogue` instead of `subject` for the raise_error
matcher since `subject` is not evaluated the way it used to be. We also
unpin rspec-puppet.
  • Loading branch information
Colleen Murphy committed Mar 19, 2015
1 parent 955ef51 commit 3a0e780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org"
group :development, :unit_tests do
gem 'rake', :require => false
gem 'rspec-core', '3.1.7', :require => false
gem 'rspec-puppet', '~> 1.0', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false
gem 'simplecov', :require => false
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/ntp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@
})
end

it { expect{ subject }.to raise_error(
/^The ntp module is not supported on an unsupported based system./
it { expect{ catalogue }.to raise_error(
/The ntp module is not supported on an unsupported based system./
)}
end
end
Expand Down

0 comments on commit 3a0e780

Please sign in to comment.