diff options
| author | Luke Kanies <luke@madstop.com> | 2007-09-06 18:53:00 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-09-06 18:53:00 -0500 |
| commit | b7f42441b91c921cd31f3d8c7875ce98bdedf786 (patch) | |
| tree | 07ef5bf2d42027914704d0305a353741d191cc90 /test/language/ast | |
| parent | 653c1514b613f27cb22d24b4bdd7b6c118047566 (diff) | |
| download | puppet-b7f42441b91c921cd31f3d8c7875ce98bdedf786.tar.gz puppet-b7f42441b91c921cd31f3d8c7875ce98bdedf786.tar.xz puppet-b7f42441b91c921cd31f3d8c7875ce98bdedf786.zip | |
Renaming some ast resource classes and files so they make a lot more sense.
Diffstat (limited to 'test/language/ast')
| -rwxr-xr-x | test/language/ast/resource.rb (renamed from test/language/ast/resourcedef.rb) | 4 | ||||
| -rwxr-xr-x | test/language/ast/resource_reference.rb (renamed from test/language/ast/resourceref.rb) | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/language/ast/resourcedef.rb b/test/language/ast/resource.rb index d79a02cfa..9ef5181af 100755 --- a/test/language/ast/resourcedef.rb +++ b/test/language/ast/resource.rb @@ -8,7 +8,7 @@ $:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'puppettest' require 'puppettest/parsertesting' -class TestASTResourceDef < Test::Unit::TestCase +class TestASTResource< Test::Unit::TestCase include PuppetTest include PuppetTest::ParserTesting AST = Puppet::Parser::AST @@ -22,7 +22,7 @@ class TestASTResourceDef < Test::Unit::TestCase def newdef(type, title, params = nil) params ||= AST::ASTArray.new(:children => []) - AST::ResourceDef.new(:type => type, :title => AST::String.new(:value => title), :params => params) + AST::Resource.new(:type => type, :title => AST::String.new(:value => title), :params => params) end # Related to #806, make sure resources always look up the full path to the resource. diff --git a/test/language/ast/resourceref.rb b/test/language/ast/resource_reference.rb index 33a80ad40..e8883afb9 100755 --- a/test/language/ast/resourceref.rb +++ b/test/language/ast/resource_reference.rb @@ -8,13 +8,13 @@ $:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'puppettest' require 'puppettest/parsertesting' -class TestASTResourceRef < Test::Unit::TestCase +class TestASTResourceReference < Test::Unit::TestCase include PuppetTest include PuppetTest::ParserTesting AST = Puppet::Parser::AST def newref(type, title) - AST::ResourceRef.new(:type => type, :title => AST::String.new(:value => title)) + AST::ResourceReference.new(:type => type, :title => AST::String.new(:value => title)) end def setup |
