X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fclasses%2Fapt_backports_spec.rb;h=1dfbf3759d61868aa53c75e10f24950b9d6d63d6;hb=a06eece5526b8838bcdd0a5f9b649b95727e09d7;hp=2e8a9b4b09e65c90f45652d0db50e282342d5924;hpb=6cb399a281d9f07ee29508cbc2ec4c8cabfe3fa7;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/classes/apt_backports_spec.rb b/spec/classes/apt_backports_spec.rb index 2e8a9b4..1dfbf37 100644 --- a/spec/classes/apt_backports_spec.rb +++ b/spec/classes/apt_backports_spec.rb @@ -224,7 +224,7 @@ describe 'apt::backports', :type => :class do it do expect { subject.call - }.to raise_error(Puppet::Error, /expects a String value/) + }.to raise_error(Puppet::Error, /expects a/) end end context 'invalid release' do @@ -236,7 +236,7 @@ describe 'apt::backports', :type => :class do it do expect { subject.call - }.to raise_error(Puppet::Error, /expects a String value/) + }.to raise_error(Puppet::Error, /expects a/) end end context 'invalid repos' do @@ -248,7 +248,7 @@ describe 'apt::backports', :type => :class do it do expect { subject.call - }.to raise_error(Puppet::Error, /expects a String value/) + }.to raise_error(Puppet::Error, /expects a/) end end context 'invalid key' do @@ -260,7 +260,7 @@ describe 'apt::backports', :type => :class do it do expect { subject.call - }.to raise_error(Puppet::Error, /expects a value of type String, Hash,/) + }.to raise_error(Puppet::Error, /expects a/) end end context 'invalid pin' do @@ -272,7 +272,7 @@ describe 'apt::backports', :type => :class do it do expect { subject.call - }.to raise_error(Puppet::Error, /parameter 'pin' expects a value of type Integer, Pattern/) + }.to raise_error(Puppet::Error, /expects a/) end end end