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

Fix failure detection in specs

parent e1ef97ab
Loading
Loading
Loading
Loading
+2 −2
Changes for spec/classes/postfix_spec.rb: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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