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