Skip to content

Commit 3a0e780

Browse files
author
Colleen Murphy
committed
Update tests for rspec-puppet 2
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.
1 parent 955ef51 commit 3a0e780

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org"
33
group :development, :unit_tests do
44
gem 'rake', :require => false
55
gem 'rspec-core', '3.1.7', :require => false
6-
gem 'rspec-puppet', '~> 1.0', :require => false
76
gem 'puppetlabs_spec_helper', :require => false
87
gem 'puppet-lint', :require => false
98
gem 'simplecov', :require => false

spec/classes/ntp_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@
363363
})
364364
end
365365

366-
it { expect{ subject }.to raise_error(
367-
/^The ntp module is not supported on an unsupported based system./
366+
it { expect{ catalogue }.to raise_error(
367+
/The ntp module is not supported on an unsupported based system./
368368
)}
369369
end
370370
end

0 commit comments

Comments
 (0)