X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fkey_compat_spec.rb;h=613c7fd99942eaca89baf50fc318b67e3cc2c685;hb=refs%2Fheads%2Frelease-prep;hp=4420337d19d46b9197620356c81d99eac56ed4ed;hpb=3cff22c493a803b407f7dfd4277d33624877c69f;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/key_compat_spec.rb b/spec/defines/key_compat_spec.rb index 4420337..613c7fd 100644 --- a/spec/defines/key_compat_spec.rb +++ b/spec/defines/key_compat_spec.rb @@ -21,8 +21,7 @@ def apt_key_example(title) end describe 'apt::key', type: :define do - GPG_KEY_ID = '6F6B15509CF8E59E6E469F327F438280EF8D349F' - + let(:key_id) { '6F6B15509CF8E59E6E469F327F438280EF8D349F' } let(:facts) do { os: { @@ -41,7 +40,7 @@ describe 'apt::key', type: :define do end let :title do - GPG_KEY_ID + key_id end let :pre_condition do @@ -70,12 +69,12 @@ describe 'apt::key', type: :define do let :params do { - id: GPG_KEY_ID + id: key_id } end it 'contains the apt_key' do - expect(subject).to contain_apt_key(title).with(id: GPG_KEY_ID, + expect(subject).to contain_apt_key(title).with(id: key_id, ensure: 'present', source: nil, server: 'keyserver.ubuntu.com', @@ -83,7 +82,7 @@ describe 'apt::key', type: :define do end it 'contains the apt_key present anchor' do - expect(subject).to contain_anchor("apt_key #{GPG_KEY_ID} present") + expect(subject).to contain_anchor("apt_key #{key_id} present") end end