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
Merge remote-tracking branch 'upstream/1.5.x'
[puppet-modules/puppetlabs-apt.git]
/
spec
/
defines
/
source_spec.rb
diff --git
a/spec/defines/source_spec.rb
b/spec/defines/source_spec.rb
index 34b394282fd4df1d8c6011fcf479a4370e629570..7c7ae399e84768fe3d51daca47c67a49c35b8855 100644
(file)
--- a/
spec/defines/source_spec.rb
+++ b/
spec/defines/source_spec.rb
@@
-74,7
+74,12
@@
describe 'apt::source', :type => :define do
end
let :content do
end
let :content do
- content = "# #{title}"
+ content = "#file generated by puppet\n"
+ if param_hash[:comment]
+ content << "# #{comment}"
+ else
+ content << "# #{title}"
+ end
if param_hash[:architecture]
arch = "[arch=#{param_hash[:architecture]}] "
end
if param_hash[:architecture]
arch = "[arch=#{param_hash[:architecture]}] "
end