From: Thomas Spalinger Date: Tue, 2 Jul 2013 19:59:26 +0000 (+0200) Subject: fixed test for changing aptitude to apt-get X-Git-Tag: 1.2.0~2^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7c66ab5f39a5fb7b039732f94a3dfac01cd8c81f;p=puppet-modules%2Fpuppetlabs-apt.git fixed test for changing aptitude to apt-get --- diff --git a/spec/defines/force_spec.rb b/spec/defines/force_spec.rb index eeea7ff..f5d6ac2 100644 --- a/spec/defines/force_spec.rb +++ b/spec/defines/force_spec.rb @@ -32,7 +32,7 @@ describe 'apt::force', :type => :define do end let :exec_title do - base_exec = "/usr/bin/aptitude -y -t #{param_hash[:release]} install #{title}" + base_exec = "/usr/bin/apt-get -y -t #{param_hash[:release]} install #{title}" base_exec + (params[:version] ? "=#{params[:version]}" : "") end it { should contain_exec(exec_title).with_unless(unless_query) }