From: Ryan Coleman Date: Fri, 24 Feb 2012 17:50:11 +0000 (-0800) Subject: (#12522) Adjust spec test for splitting purge X-Git-Tag: 0.0.1~8^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=be2cc3ec1b7a56f1b6e558610960ca36edb60a85;p=puppet-modules%2Fpuppetlabs-apt.git (#12522) Adjust spec test for splitting purge Now that the purge parameter is split into two, the spec test needs adjusted. This commit makes that adjustment. --- diff --git a/spec/classes/apt_spec.rb b/spec/classes/apt_spec.rb index e21c78e..6ab1e9e 100644 --- a/spec/classes/apt_spec.rb +++ b/spec/classes/apt_spec.rb @@ -4,7 +4,8 @@ describe 'apt', :type => :class do { :disable_keys => :undef, :always_apt_update => false, - :purge => false + :purge_sources_list => false, + :purge_sources_list_d => false, } end @@ -14,7 +15,8 @@ describe 'apt', :type => :class do :always_apt_update => true, :proxy_host => true, :proxy_port => '3128', - :purge => true + :purge_sources_list => true, + :purge_sources_list_d => true, }, { :disable_keys => false @@ -42,7 +44,7 @@ describe 'apt', :type => :class do it { should contain_package("python-software-properties") } it { - if param_hash[:purge] + if param_hash[:purge_sources_list] should contain_file("sources.list").with({ 'path' => "/etc/apt/sources.list", 'ensure' => "present", @@ -63,7 +65,7 @@ describe 'apt', :type => :class do end } it { - if param_hash[:purge] + if param_hash[:purge_sources_list_d] should create_file("sources.list.d").with({ 'path' => "/etc/apt/sources.list.d", 'ensure' => "directory",