Commit 10fec76c authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Fix failure detection in specs

parent e1ef97ab
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment