Skip to content

Commit

Permalink
Fix unit test syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesps-ebi committed Jul 30, 2024
1 parent 49a3456 commit 377f22e
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions spec/defines/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -426,26 +426,30 @@

context 'basic deb822 source' do
let :params do
super().merge({
location: ['http://debian.mirror.iweb.ca/debian/'],
repos: ['main', 'contrib', 'non-free']
})
super().merge(
{
location: ['http://debian.mirror.iweb.ca/debian/'],
repos: ['main', 'contrib', 'non-free']
},
)
end

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

context 'complex deb822 source' do
let :params do
super().merge({
types: ['deb', 'deb-src'],
location: ['http://fr.debian.org/debian', 'http://de.debian.org/debian'],
release: ['stable', 'stable-updates', 'stable-backports'],
repos: ['main', 'contrib', 'non-free'],
architecture: ['amd64', 'i386'],
allow_unsigned: true,
notify_update: false
})
super().merge(
{
types: ['deb', 'deb-src'],
location: ['http://fr.debian.org/debian', 'http://de.debian.org/debian'],
release: ['stable', 'stable-updates', 'stable-backports'],
repos: ['main', 'contrib', 'non-free'],
architecture: ['amd64', 'i386'],
allow_unsigned: true,
notify_update: false
},
)
end

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

context '.list backwards compatibility' do
let :params do
super().merge({
location: 'http://debian.mirror.iweb.ca/debian/',
release: 'unstable',
repos: 'main contrib non-free',
key: {
id: 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
server: 'keyserver.ubuntu.com',
super().merge(
{
location: 'http://debian.mirror.iweb.ca/debian/',
release: 'unstable',
repos: 'main contrib non-free',
key: {
id: 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
server: 'keyserver.ubuntu.com',
},
pin: '-10'
},
pin: '-10'
})
)
end

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

0 comments on commit 377f22e

Please sign in to comment.