summaryrefslogtreecommitdiffstats
path: root/spec/integration
diff options
context:
space:
mode:
authorLuke Kanies <luke@reductivelabs.com>2010-01-04 16:57:59 -0800
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit2c2b3c27e242f7ee99354c7d4f0d2a18d5710f49 (patch)
tree9ecb251281d7baf291f18569c1185c1dcc4d4565 /spec/integration
parent6bf19532710fdb0e5619e00d6656e6b535297247 (diff)
downloadpuppet-2c2b3c27e242f7ee99354c7d4f0d2a18d5710f49.tar.gz
puppet-2c2b3c27e242f7ee99354c7d4f0d2a18d5710f49.tar.xz
puppet-2c2b3c27e242f7ee99354c7d4f0d2a18d5710f49.zip
Storing per-environment LoadedCode instances
This will soon replace all of the env/parser mungling we have to do. A given process will only be able to have one collection of code per environment in memory. This is somewhat limiting, in theory, but some global means of looking up code collection (LoadedCode instances) must exist for the pure ruby stuff to work. Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'spec/integration')
-rwxr-xr-xspec/integration/parser/parser.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/parser/parser.rb b/spec/integration/parser/parser.rb
index 71ae136ed..cc6591ce4 100755
--- a/spec/integration/parser/parser.rb
+++ b/spec/integration/parser/parser.rb
@@ -4,8 +4,8 @@ require File.dirname(__FILE__) + '/../../spec_helper'
describe Puppet::Parser::Parser do
before :each do
- @loaded_code = Puppet::Parser::LoadedCode.new
- @parser = Puppet::Parser::Parser.new :environment => "development", :loaded_code => @loaded_code
+ @resource_type_collection = Puppet::Parser::ResourceTypeCollection.new("env")
+ @parser = Puppet::Parser::Parser.new :environment => "development", :resource_type_collection => @resource_type_collection
end
describe "when parsing comments before statement" do