Skip to content

Commit 9f49af5

Browse files
committed
Changed implementation for variable declaration
1 parent 35c4736 commit 9f49af5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spec/acceptance/apt_keyring_spec.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
describe 'apt::keyring' do
66
context 'when using default values and source specified explicitly' do
7-
keyring_pp = <<-MANIFEST
8-
apt::keyring { 'puppetlabs-keyring.gpg':
9-
source => 'https://apt.puppetlabs.com/keyring.gpg',
10-
}
11-
MANIFEST
7+
let (:keyring_pp) do
8+
<<-MANIFEST
9+
apt::keyring { 'puppetlabs-keyring.gpg':
10+
source => 'https://apt.puppetlabs.com/keyring.gpg',
11+
}
12+
MANIFEST
13+
end
1214

1315
it 'applies idempotently' do
1416
retry_on_error_matching do

0 commit comments

Comments
 (0)