]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
(#12522) Adjust spec test for splitting purge
authorRyan Coleman <ryan@puppetlabs.com>
Fri, 24 Feb 2012 17:50:11 +0000 (09:50 -0800)
committerRyan Coleman <ryan@puppetlabs.com>
Fri, 24 Feb 2012 18:17:26 +0000 (10:17 -0800)
Now that the purge parameter is split into two, the spec test needs
adjusted. This commit makes that adjustment.

spec/classes/apt_spec.rb

index e21c78ef9a423fc4792d158b044a11dc8e02a5b2..6ab1e9e6d64de8186d01b4585dbe0aaeb8bc7ea1 100644 (file)
@@ -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",