From: Stefan van Wouw Date: Wed, 23 Oct 2013 10:29:47 +0000 (+0200) Subject: Fixed tests for fe594950c5 X-Git-Tag: 1.4.1~19^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=67e8968fe0f1259f08f1a248a8195da20b4b0fed;p=puppet-modules%2Fpuppetlabs-apt.git Fixed tests for fe594950c5 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). --- diff --git a/spec/defines/source_spec.rb b/spec/defines/source_spec.rb index 9ad4d46..215d1e6 100644 --- a/spec/defines/source_spec.rb +++ b/spec/defines/source_spec.rb @@ -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"