(maint) Remove duplicated fact declarations (#828)
[puppet-modules/puppetlabs-apt.git] / spec / defines / key_compat_spec.rb
index aee585588c1d2e08cddd4c433db61e43db41a066..47b03d4fe50533ea25fe4c9acfb59f98520c0def 100644 (file)
@@ -26,7 +26,6 @@ describe 'apt::key', type: :define do
       os: { family: 'Debian', name: 'Debian', release: { major: '8', full: '8.0' } },
       lsbdistid: 'Debian',
       osfamily: 'Debian',
-      puppetversion: Puppet.version,
     }
   end
 
@@ -271,7 +270,7 @@ describe 'apt::key', type: :define do
       end
 
       it 'fails' do
-        is_expected.to raise_error(%r{expects a match})
+        is_expected.to raise_error(%r{evaluating a Resource})
       end
     end
 
@@ -319,7 +318,7 @@ describe 'apt::key', type: :define do
       end
 
       it 'fails' do
-        is_expected.to raise_error(%r{Enum\['absent', 'present'\]})
+        is_expected.to raise_error(%r{Enum\['absent', 'present', 'refreshed'\]})
       end
     end