X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fpin_spec.rb;h=52ecb97132beddc48116fca47227a889c5b61142;hb=cd413ee3930368785afc5af3c19347e74f7d99ac;hp=a01a919a5b2e42636b49aa8a97460613a54f45ee;hpb=f610bedc5f33db5fdee2ad49eeda95268ab0b9a5;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/pin_spec.rb b/spec/defines/pin_spec.rb index a01a919..52ecb97 100644 --- a/spec/defines/pin_spec.rb +++ b/spec/defines/pin_spec.rb @@ -88,9 +88,7 @@ describe 'apt::pin', type: :define do end it do - expect { - subject.call - }.to raise_error(Puppet::Error, %r{expects an Integer value, got String}) + is_expected.to raise_error(Puppet::Error, %r{expects an Integer value, got String}) end end @@ -102,9 +100,7 @@ describe 'apt::pin', type: :define do end it do - expect { - subject.call - }.to raise_error(Puppet::Error, %r{parameter version cannot be used in general form}) + is_expected.to raise_error(Puppet::Error, %r{parameter version cannot be used in general form}) end end @@ -117,9 +113,7 @@ describe 'apt::pin', type: :define do end it do - expect { - subject.call - }.to raise_error(Puppet::Error, %r{parameters release and origin are mutually exclusive}) + is_expected.to raise_error(Puppet::Error, %r{parameters release and origin are mutually exclusive}) end end @@ -133,9 +127,7 @@ describe 'apt::pin', type: :define do end it do - expect { - subject.call - }.to raise_error(Puppet::Error, %r{parameters release, origin, and version are mutually exclusive}) + is_expected.to raise_error(Puppet::Error, %r{parameters release, origin, and version are mutually exclusive}) end end @@ -149,9 +141,7 @@ describe 'apt::pin', type: :define do end it do - expect { - subject.call - }.to raise_error(Puppet::Error, %r{parameters release, origin, and version are mutually exclusive}) + is_expected.to raise_error(Puppet::Error, %r{parameters release, origin, and version are mutually exclusive}) end end end