[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

test branch puppet-dev at googlegroups.com
Wed Jul 14 10:31:41 UTC 2010


The following commit has been merged in the upstream branch:
commit 7504f1ede94900ab42cd6e9c4ff9c8a5cb9e65ee
Author: Markus Roberts <Markus at reality.com>
Date:   Thu Jan 7 17:23:31 2010 -0800

    Resolving conflicts with ???

diff --git a/lib/puppet/resource/type.rb b/lib/puppet/resource/type.rb
index 1a18b4e..9baf198 100644
--- a/lib/puppet/resource/type.rb
+++ b/lib/puppet/resource/type.rb
@@ -27,7 +27,6 @@ class Puppet::Resource::Type
     def evaluate_code(resource)
         # Create a new scope.
         scope = subscope(resource.scope, resource)
-        scope.compiler.class_set(name, scope)
 
         set_resource_parameters(resource, scope)
 
diff --git a/spec/unit/resource/type.rb b/spec/unit/resource/type.rb
index 14503b7..98b38c9 100755
--- a/spec/unit/resource/type.rb
+++ b/spec/unit/resource/type.rb
@@ -343,11 +343,11 @@ describe Puppet::Resource::Type do
         end
 
         it "should store the class scope" do
-            subscope = stub 'subscope', :compiler => @compiler
+            subscope = stub 'subscope'
+            subscope.expects(:class_set).with('foo',subscope)
             @type.expects(:subscope).with(@scope, @resource).returns subscope
 
             @type.evaluate_code(@resource)
-            @compiler.class_scope(@type).should equal(subscope)
         end
 
         it "should evaluate the code if any is provided" do
diff --git a/test/language/ast.rb b/test/language/ast.rb
index ed11bc1..209bc98 100755
--- a/test/language/ast.rb
+++ b/test/language/ast.rb
@@ -3,7 +3,6 @@
 require File.dirname(__FILE__) + '/../lib/puppettest'
 
 require 'puppettest'
-require 'puppet/parser/interpreter'
 require 'puppet/parser/parser'
 require 'puppettest/resourcetesting'
 require 'puppettest/parsertesting'
diff --git a/test/language/snippets.rb b/test/language/snippets.rb
index bfd0e53..bd0d348 100755
--- a/test/language/snippets.rb
+++ b/test/language/snippets.rb
@@ -3,7 +3,6 @@
 require File.dirname(__FILE__) + '/../lib/puppettest'
 
 require 'puppet'
-require 'puppet/parser/interpreter'
 require 'puppet/parser/parser'
 require 'puppet/network/client'
 require 'puppet/network/handler'
diff --git a/test/rails/rails.rb b/test/rails/rails.rb
index c3b48b9..7f4b366 100755
--- a/test/rails/rails.rb
+++ b/test/rails/rails.rb
@@ -4,7 +4,6 @@ require File.dirname(__FILE__) + '/../lib/puppettest'
 
 require 'puppet'
 require 'puppet/rails'
-require 'puppet/parser/interpreter'
 require 'puppet/parser/parser'
 require 'puppet/network/client'
 require 'puppettest'

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list