Project

General

Profile

« Previous | Next » 

Revision 695b60c9

Added by Dominic Cleal over 9 years ago

Update error raising tests and use of subject for rspec-puppet 2.0

View differences:

spec/classes/puppet_server_service_spec.rb
describe 'when puppetmaster => true and puppetserver => true' do
let(:params) { {:puppetserver => true, :puppetmaster => true} }
it { expect { should create_class('puppet::server::service') }.to raise_error(Puppet::Error, /Both puppetmaster and puppetserver cannot be enabled simultaneously/) }
it { should raise_error(Puppet::Error, /Both puppetmaster and puppetserver cannot be enabled simultaneously/) }
end
end

Also available in: Unified diff