Merge remote-tracking branch 'upstream/1.5.x'
[puppet-modules/puppetlabs-apt.git] / spec / defines / source_spec.rb
index 34b394282fd4df1d8c6011fcf479a4370e629570..7c7ae399e84768fe3d51daca47c67a49c35b8855 100644 (file)
@@ -74,7 +74,12 @@ describe 'apt::source', :type => :define 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