Make apt.conf.d/proxy world readable and add a newline
[puppet-modules/puppetlabs-apt.git] / spec / classes / apt_spec.rb
index 0da7d32db03088751687508d60e594e4f2843619..7f88dddc3986cc2005357c2e8a1bc210020dfc29 100644 (file)
@@ -164,7 +164,7 @@ describe 'apt', :type => :class do
           if param_hash[:proxy_host]
             should contain_file('configure-apt-proxy').with(
               'path'    => '/etc/apt/apt.conf.d/proxy',
-              'content' => "Acquire::http::Proxy \"http://#{param_hash[:proxy_host]}:#{param_hash[:proxy_port]}\";",
+              'content' => "Acquire::http::Proxy \"http://#{param_hash[:proxy_host]}:#{param_hash[:proxy_port]}\";\n",
               'notify'  => "Exec[apt_update]"
             )
           else