Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
(MODULES-1200) Fix inconsistent header across files
[puppet-modules/puppetlabs-apt.git]
/
spec
/
defines
/
conf_spec.rb
diff --git
a/spec/defines/conf_spec.rb
b/spec/defines/conf_spec.rb
index cda5900c035a3174aa782d8d8e34d678534b6eb5..2c1752f074cb301741edc771a4ba3420bae950b0 100644
(file)
--- a/
spec/defines/conf_spec.rb
+++ b/
spec/defines/conf_spec.rb
@@
-17,15
+17,9
@@
describe 'apt::conf', :type => :define do
"/etc/apt/apt.conf.d/00norecommends"
end
"/etc/apt/apt.conf.d/00norecommends"
end
- it { should contain_apt__conf('norecommends').with({
- 'priority' => '00',
- 'content' => "Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;\n"
- })
- }
-
it { should contain_file(filename).with({
'ensure' => 'present',
it { should contain_file(filename).with({
'ensure' => 'present',
- 'content' =>
"Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;\n"
,
+ 'content' =>
/Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;/
,
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
@@
-48,7
+42,7
@@
describe 'apt::conf', :type => :define do
it { should contain_file(filename).with({
'ensure' => 'absent',
it { should contain_file(filename).with({
'ensure' => 'absent',
- 'content' =>
"Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;\n"
,
+ 'content' =>
/Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;/
,
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
'owner' => 'root',
'group' => 'root',
'mode' => '0644',