Merge pull request #504 from mhaskel/fix_tests
[puppet-modules/puppetlabs-apt.git] / spec / defines / ppa_spec.rb
index 521b42ba2b47897fc99b9c8b59f5769b73dfac59..7046475736e9b4d58f3e7e8961a3a265a5b7fbff 100644 (file)
@@ -279,7 +279,7 @@ describe 'apt::ppa' do
       let(:title) { 'ppa:foo' }
       it do
         expect {
-          is_expected.to compile
+          subject.call
         }.to raise_error(Puppet::Error, /lsbdistcodename fact not available: release parameter required/)
       end
     end
@@ -297,7 +297,7 @@ describe 'apt::ppa' do
       let(:title) { 'ppa:foo' }
       it do
         expect {
-          is_expected.to compile
+          subject.call
         }.to raise_error(Puppet::Error, /not currently supported on Debian/)
       end
     end