Merge pull request #504 from mhaskel/fix_tests
[puppet-modules/puppetlabs-apt.git] / spec / defines / ppa_spec.rb
index 7903e470377410d2df8320148c066970bb331445..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,8 +297,8 @@ describe 'apt::ppa' do
       let(:title) { 'ppa:foo' }
       it do
         expect {
-          is_expected.to compile
-        }.to raise_error(Puppet::Error, /supported on Ubuntu and LinuxMint only/)
+          subject.call
+        }.to raise_error(Puppet::Error, /not currently supported on Debian/)
       end
     end
   end