Skip to content

Commit 377f22e

Browse files
committed
Fix unit test syntax
1 parent 49a3456 commit 377f22e

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

spec/defines/source_spec.rb

+28-22
Original file line numberDiff line numberDiff line change
@@ -426,26 +426,30 @@
426426

427427
context 'basic deb822 source' do
428428
let :params do
429-
super().merge({
430-
location: ['http://debian.mirror.iweb.ca/debian/'],
431-
repos: ['main', 'contrib', 'non-free']
432-
})
429+
super().merge(
430+
{
431+
location: ['http://debian.mirror.iweb.ca/debian/'],
432+
repos: ['main', 'contrib', 'non-free']
433+
},
434+
)
433435
end
434436

435437
it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(true) }
436438
end
437439

438440
context 'complex deb822 source' do
439441
let :params do
440-
super().merge({
441-
types: ['deb', 'deb-src'],
442-
location: ['http://fr.debian.org/debian', 'http://de.debian.org/debian'],
443-
release: ['stable', 'stable-updates', 'stable-backports'],
444-
repos: ['main', 'contrib', 'non-free'],
445-
architecture: ['amd64', 'i386'],
446-
allow_unsigned: true,
447-
notify_update: false
448-
})
442+
super().merge(
443+
{
444+
types: ['deb', 'deb-src'],
445+
location: ['http://fr.debian.org/debian', 'http://de.debian.org/debian'],
446+
release: ['stable', 'stable-updates', 'stable-backports'],
447+
repos: ['main', 'contrib', 'non-free'],
448+
architecture: ['amd64', 'i386'],
449+
allow_unsigned: true,
450+
notify_update: false
451+
},
452+
)
449453
end
450454

451455
it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(false) }
@@ -460,16 +464,18 @@
460464

461465
context '.list backwards compatibility' do
462466
let :params do
463-
super().merge({
464-
location: 'http://debian.mirror.iweb.ca/debian/',
465-
release: 'unstable',
466-
repos: 'main contrib non-free',
467-
key: {
468-
id: 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
469-
server: 'keyserver.ubuntu.com',
467+
super().merge(
468+
{
469+
location: 'http://debian.mirror.iweb.ca/debian/',
470+
release: 'unstable',
471+
repos: 'main contrib non-free',
472+
key: {
473+
id: 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
474+
server: 'keyserver.ubuntu.com',
475+
},
476+
pin: '-10'
470477
},
471-
pin: '-10'
472-
})
478+
)
473479
end
474480

475481
it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(true) }

0 commit comments

Comments
 (0)