Revision 4eaab13b
Added by Dominic Cleal over 9 years ago
spec/defines/foreman_install_repos_spec.rb | ||
---|---|---|
let(:params) { {:repo => 'stable'} }
|
||
|
||
it 'should fail' do
|
||
expect { subject }.to raise_error(/#{facts[:hostname]}: This module does not support operatingsystem #{facts[:operatingsystem]}/)
|
||
should raise_error(/#{facts[:hostname]}: This module does not support operatingsystem #{facts[:operatingsystem]}/)
|
||
end
|
||
end
|
||
|
||
... | ... | |
let(:params) { {:repo => 'stable'} }
|
||
|
||
it 'should fail' do
|
||
expect { subject }.to raise_error(/#{facts[:hostname]}: This module does not support osfamily #{facts[:osfamily]}/)
|
||
should raise_error(/#{facts[:hostname]}: This module does not support osfamily #{facts[:osfamily]}/)
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Update error raising tests and use of subject for rspec-puppet 2.0