X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fkey_compat_spec.rb;h=47b03d4fe50533ea25fe4c9acfb59f98520c0def;hb=da1a6d0aef5e6b22c25bc0b60a2fd6be603e677c;hp=aee585588c1d2e08cddd4c433db61e43db41a066;hpb=7fc436b6f7efd749df44bec3ab16f5aafb210a79;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/key_compat_spec.rb b/spec/defines/key_compat_spec.rb index aee5855..47b03d4 100644 --- a/spec/defines/key_compat_spec.rb +++ b/spec/defines/key_compat_spec.rb @@ -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