Fixed tests for fe594950c5
authorStefan van Wouw <stefanvanwouw@gmail.com>
Wed, 23 Oct 2013 10:29:47 +0000 (12:29 +0200)
committerStefan van Wouw <stefanvanwouw@gmail.com>
Wed, 23 Oct 2013 10:29:47 +0000 (12:29 +0200)
We actually expect an extra space. The previous build failed because a test is issued for location='', which indeed results in 2 spaces between the architecture specification and the release. According to the sources.list man page a location is always required though (unlike the missing/empty location in the :default_params of the source_spec test).

spec/defines/source_spec.rb

index 9ad4d463e4939fde48a2eccd19a9b4ab1738bb13..215d1e692f992c134c67f478f25b94e46bc2109f 100644 (file)
@@ -73,7 +73,7 @@ describe 'apt::source', :type => :define do
       let :content do
         content = "# #{title}"
         if param_hash[:architecture]
-          arch = "[arch=#{param_hash[:architecture]}]"
+          arch = "[arch=#{param_hash[:architecture]}] "
         end
         content << "\ndeb #{arch}#{param_hash[:location]} #{param_hash[:release]} #{param_hash[:repos]}\n"