diff options
| author | Luke Kanies <luke@madstop.com> | 2007-12-11 15:35:36 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-12-11 15:35:36 -0600 |
| commit | cb0c4eebb0a7b2fadc5e0487e1c692007cb8b2e5 (patch) | |
| tree | b4284addea69adf9d19028ff1bab94035b1c1827 /spec/unit/parser | |
| parent | 7ac3bd79621f6c66cd3b5b7041aeba83c27c3602 (diff) | |
| download | puppet-cb0c4eebb0a7b2fadc5e0487e1c692007cb8b2e5.tar.gz puppet-cb0c4eebb0a7b2fadc5e0487e1c692007cb8b2e5.tar.xz puppet-cb0c4eebb0a7b2fadc5e0487e1c692007cb8b2e5.zip | |
Renaming 'configuration' to 'catalog', fixing #954.
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/compile.rb | 22 | ||||
| -rwxr-xr-x | spec/unit/parser/interpreter.rb | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/spec/unit/parser/compile.rb b/spec/unit/parser/compile.rb index 3be7d1637..2ae99b5fd 100755 --- a/spec/unit/parser/compile.rb +++ b/spec/unit/parser/compile.rb @@ -64,8 +64,8 @@ describe Puppet::Parser::Compile, " when evaluating classes" do proc { @compile.evaluate_classes(%w{one two}, scope) }.should raise_error(Puppet::DevError) end - it "should tag the configuration with the name of each not-found class" do - @compile.configuration.expects(:tag).with("notfound") + it "should tag the catalog with the name of each not-found class" do + @compile.catalog.expects(:tag).with("notfound") @scope.expects(:findclass).with("notfound").returns(nil) @compile.evaluate_classes(%w{notfound}, @scope) end @@ -110,7 +110,7 @@ describe Puppet::Parser::Compile, " when evaluating found classes" do end it "should create a resource for each found class" do - @compile.configuration.stubs(:tag) + @compile.catalog.stubs(:tag) @compile.stubs :store_resource @@ -119,7 +119,7 @@ describe Puppet::Parser::Compile, " when evaluating found classes" do end it "should store each created resource in the compile" do - @compile.configuration.stubs(:tag) + @compile.catalog.stubs(:tag) @compile.expects(:store_resource).with(@scope, @resource) @@ -127,8 +127,8 @@ describe Puppet::Parser::Compile, " when evaluating found classes" do @compile.evaluate_classes(%w{myclass}, @scope) end - it "should tag the configuration with the fully-qualified name of each found class" do - @compile.configuration.expects(:tag).with("my::class") + it "should tag the catalog with the fully-qualified name of each found class" do + @compile.catalog.expects(:tag).with("my::class") @compile.stubs(:store_resource) @@ -137,7 +137,7 @@ describe Puppet::Parser::Compile, " when evaluating found classes" do end it "should not evaluate the resources created for found classes unless asked" do - @compile.configuration.stubs(:tag) + @compile.catalog.stubs(:tag) @compile.stubs(:store_resource) @resource.expects(:evaluate).never @@ -147,7 +147,7 @@ describe Puppet::Parser::Compile, " when evaluating found classes" do end it "should immediately evaluate the resources created for found classes when asked" do - @compile.configuration.stubs(:tag) + @compile.catalog.stubs(:tag) @compile.stubs(:store_resource) @resource.expects(:evaluate) @@ -157,7 +157,7 @@ describe Puppet::Parser::Compile, " when evaluating found classes" do end it "should return the list of found classes" do - @compile.configuration.stubs(:tag) + @compile.catalog.stubs(:tag) @compile.stubs(:store_resource) @scope.stubs(:findclass).with("notfound").returns(nil) @@ -227,14 +227,14 @@ describe Puppet::Parser::Compile, " when evaluating AST nodes with AST nodes pre @compile.send(:evaluate_ast_node) end - it "should tag the configuration with the found node name" do + it "should tag the catalog with the found node name" do node_class = stub 'node', :classname => "c" @nodes.stubs(:[]).with("c").returns(node_class) node_resource = stub 'node resource', :ref => "Node[c]", :evaluate => nil Puppet::Parser::Resource.stubs(:new).returns(node_resource) - @compile.configuration.expects(:tag).with("c") + @compile.catalog.expects(:tag).with("c") @compile.send(:evaluate_ast_node) end diff --git a/spec/unit/parser/interpreter.rb b/spec/unit/parser/interpreter.rb index 782b30cc7..ed30ced93 100755 --- a/spec/unit/parser/interpreter.rb +++ b/spec/unit/parser/interpreter.rb @@ -111,7 +111,7 @@ describe Puppet::Parser::Interpreter, " when managing parser instances" do end end -describe Puppet::Parser::Interpreter, " when compiling configurations" do +describe Puppet::Parser::Interpreter, " when compiling catalog" do before do @interp = Puppet::Parser::Interpreter.new @node = stub 'node', :environment => :myenv @@ -132,12 +132,12 @@ describe Puppet::Parser::Interpreter, " when compiling configurations" do end end -describe Puppet::Parser::Interpreter, " when returning configuration version" do +describe Puppet::Parser::Interpreter, " when returning catalog version" do before do @interp = Puppet::Parser::Interpreter.new end - it "should ask the appropriate parser for the configuration version" do + it "should ask the appropriate parser for the catalog version" do node = mock 'node' node.expects(:environment).returns(:myenv) parser = mock 'parser' |
