Skip to content
Snippets Groups Projects
Commit 10fec76c authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Fix failure detection in specs

parent e1ef97ab
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ describe 'postfix' do
context 'and satellite is also enabled' do
let (:params) { { :mta => true, :satellite => true, :mydestination => '1.2.3.4', :relayhost => '2.3.4.5' } }
it 'should fail' do
expect {subject}.to raise_error(Puppet::Error, /Please disable one/)
expect { should compile }.to raise_error(/Please disable one/)
end
end
end
......@@ -269,7 +269,7 @@ describe 'postfix' do
context 'and mta is also enabled' do
let (:params) { { :mta => true, :satellite => true, :mydestination => '1.2.3.4', :relayhost => '2.3.4.5' } }
it 'should fail' do
expect {subject}.to raise_error(Puppet::Error, /Please disable one/)
expect { should compile }.to raise_error(/Please disable one/)
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment