X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fclasses%2Fapt_backports_spec.rb;h=1dfbf3759d61868aa53c75e10f24950b9d6d63d6;hb=7ddd7fd53f0292535928afbf9d90257702a1aff5;hp=c0d54a21c990e5e2f18d4e7326ad45254b6a472a;hpb=df40baebedf5c0c15e08f3ec78adfd760b1371ca;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/classes/apt_backports_spec.rb b/spec/classes/apt_backports_spec.rb index c0d54a2..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 or Hash, got Boolean/) + }.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, /expects a value of type Integer, String, or Hash, got Boolean/) + }.to raise_error(Puppet::Error, /expects a/) end end end