}
end
- it { should contain_apt__source('backports.list').with({
+ it { should contain_apt__source('backports').with({
'location' => 'http://old-releases.ubuntu.com/ubuntu',
'release' => 'karmic-backports',
'repos' => 'universe multiverse restricted',
}
end
- it { should contain_apt__source('backports.list').with({
+ it { should contain_apt__source('backports').with({
'location' => 'http://backports.debian.org/debian-backports',
'release' => 'squeeze-backports',
'repos' => 'main contrib non-free',
{ 'location' => location }
end
- it { should contain_apt__source('backports.list').with({
+ it { should contain_apt__source('backports').with({
'location' => location,
'release' => 'squeeze-backports',
'repos' => 'main contrib non-free',
it { should contain_file("#{title}.pref").with({
'ensure' => param_hash[:ensure],
- 'path' => "/etc/apt/preferences.d/#{title}",
+ 'path' => "/etc/apt/preferences.d/#{title}.pref",
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
- 'content' => "# #{title}\nPackage: #{param_hash[:packages]}\nPin: release a=#{param_hash[:release] || title}\nPin-Priority: #{param_hash[:priority]}",
+ 'content' => "# #{title}\nPackage: #{param_hash[:packages]}\nPin: release a=#{param_hash[:release] || title}\nPin-Priority: #{param_hash[:priority]}\n",
})
}
end
it {
if param_hash[:pin]
- should contain_apt__pin(param_hash[:release]).with({
+ should contain_apt__pin(title).with({
"priority" => param_hash[:pin],
"before" => "File[#{title}.list]"
})
else
- should_not contain_apt__pin(param_hash[:release]).with({
+ should_not contain_apt__pin(title).with({
"priority" => param_hash[:pin],
"before" => "File[#{title}.list]"
})