X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fppa_spec.rb;h=7a11811e461dea4d6f4d0e845c27495aecd54e14;hb=438a48a21f416c4a5202160e7d2d4775c6e6739b;hp=89e5b36c57f4373590e27eae895bc93636e652bb;hpb=6027e050b2e0e8c07efb3b7aa2329a4130d4a6fc;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/ppa_spec.rb b/spec/defines/ppa_spec.rb index 89e5b36..7a11811 100644 --- a/spec/defines/ppa_spec.rb +++ b/spec/defines/ppa_spec.rb @@ -53,12 +53,6 @@ describe 'apt::ppa' do } end - describe 'ppa depending on ppa, MODULES-1156' do - let :pre_condition do - 'class { "apt": }' - end - end - describe 'package_name => software-properties-common' do let :pre_condition do 'class { "apt": }' @@ -359,9 +353,7 @@ describe 'apt::ppa' do let(:title) { 'ppa:user/foo' } it do - expect { - subject.call - }.to raise_error(Puppet::Error, %r{lsbdistcodename fact not available: release parameter required}) + is_expected.to raise_error(Puppet::Error, %r{lsbdistcodename fact not available: release parameter required}) end end @@ -380,9 +372,7 @@ describe 'apt::ppa' do let(:title) { 'ppa:user/foo' } it do - expect { - subject.call - }.to raise_error(Puppet::Error, %r{not currently supported on Debian}) + is_expected.to raise_error(Puppet::Error, %r{not currently supported on Debian}) end end end