2 describe 'apt::conf', :type => :define do
7 describe "when creating an apt preference" do
11 :content => "Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;\n"
16 "/etc/apt/apt.conf.d/00norecommends"
19 it { should contain_apt__conf('norecommends').with({
21 'content' => "Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;\n"
25 it { should contain_file(filename).with({
26 'ensure' => 'present',
27 'content' => "Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;\n",
35 describe "when removing an apt preference" do
40 :content => "Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;\n"
45 "/etc/apt/apt.conf.d/00norecommends"
48 it { should contain_file(filename).with({
50 'content' => "Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;\n",