Update rspec 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.
This commit is contained in:
Colleen Murphy
2015-03-18 13:43:43 -07:00
parent 7a39d596bd
commit 5b45d1fede
2 changed files with 1 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ describe 'java', :type => :class do
].each do |facts|
let(:facts) { facts }
it "should fail on #{facts[:operatingsystem]} #{facts[:operatingsystemrelease]}" do
expect { subject }.to raise_error Puppet::Error, /unsupported platform/
expect { catalogue }.to raise_error Puppet::Error, /unsupported platform/
end
end
end