X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=spec%2Fdefines%2Fppa_spec.rb;h=f3c76a3bde3facefa498e71c4a41ced6724a0d12;hb=1139f801eb7c603c4ee10ef165f03a710ef8bf38;hp=d57c1a5895aca720b4d5466754885411a0468491;hpb=cddf5498f0b9150f2d54f8eadc0c5675ec9d9414;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/ppa_spec.rb b/spec/defines/ppa_spec.rb index d57c1a5..f3c76a3 100644 --- a/spec/defines/ppa_spec.rb +++ b/spec/defines/ppa_spec.rb @@ -96,7 +96,7 @@ describe 'apt::ppa', :type => :define do let(:title) { 'ppa:foo' } it do expect { - should compile + is_expected.to compile }.to raise_error(Puppet::Error, /lsbdistcodename fact not available: release parameter required/) end end @@ -114,7 +114,7 @@ describe 'apt::ppa', :type => :define do let(:title) { 'ppa:foo' } it do expect { - should compile + is_expected.to compile }.to raise_error(Puppet::Error, /apt::ppa is currently supported on Ubuntu only./) end end