[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:11 UTC 2009


The following commit has been merged in the master branch:
commit d39bab9a02abf139f83e63634cfded5c5b42b14c
Author: Luke Kanies <luke at madstop.com>
Date:   Wed Oct 1 19:07:49 2008 -0500

    Fixing package provider tests to use the new Transaction::Change interface
    
    Signed-off-by: Luke Kanies <luke at madstop.com>

diff --git a/test/ral/providers/package/aptitude.rb b/test/ral/providers/package/aptitude.rb
index f8edceb..881f540 100755
--- a/test/ral/providers/package/aptitude.rb
+++ b/test/ral/providers/package/aptitude.rb
@@ -41,7 +41,6 @@ class AptitudePackageProviderTest < PuppetTest::TestCase
 					  ).returns(0)
 		
 		pkg.evaluate.each { |state| 
-                    state.transaction = self 
                     state.forward 
           }
 	end
@@ -67,6 +66,6 @@ class AptitudePackageProviderTest < PuppetTest::TestCase
 					        'faff'
 					  ).returns(0)
 		
-		pkg.evaluate.each { |state| state.transaction = self; state.forward }
+		pkg.evaluate.each { |state| state.forward }
 	end
 end
diff --git a/test/ral/providers/package/aptrpm.rb b/test/ral/providers/package/aptrpm.rb
index c005ee5..32e0ea6 100755
--- a/test/ral/providers/package/aptrpm.rb
+++ b/test/ral/providers/package/aptrpm.rb
@@ -39,7 +39,7 @@ class AptrpmPackageProviderTest < PuppetTest::TestCase
                          'faff'
                     ).returns(0)
         
-        pkg.evaluate.each { |state| state.transaction = self; state.forward }
+        pkg.evaluate.each { |state| state.forward }
     end
     
     def test_uninstall
@@ -66,7 +66,7 @@ class AptrpmPackageProviderTest < PuppetTest::TestCase
                         'faff'
                     ).returns(0)
         
-        pkg.evaluate.each { |state| state.transaction = self; state.forward }
+        pkg.evaluate.each { |state| state.forward }
     end
 
     # LAK: I don't know where this test will ever return true..

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list