diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-03 20:45:25 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-03 20:45:25 +0000 |
| commit | 0c07125397428a0c1ca9a4a4d0176f45d8be0979 (patch) | |
| tree | 1b390027a563b47a26341b439288b81473c6cdcf /test/language/parser.rb | |
| parent | 8d7ec14836809f1433e645c3069691d2f6c70e52 (diff) | |
| download | puppet-0c07125397428a0c1ca9a4a4d0176f45d8be0979.tar.gz puppet-0c07125397428a0c1ca9a4a4d0176f45d8be0979.tar.xz puppet-0c07125397428a0c1ca9a4a4d0176f45d8be0979.zip | |
Fixing #615 (subclasses with similar names) by getting rid of the class "type" and "fqname", and instead using "classname" everywhere. You should no longer see unqualified class/definition names anywhere. Also, rewriting how snippet tests work, to avoid creating all of the files, since the point was the parsing tests, not functional tests.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2458 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/language/parser.rb')
| -rwxr-xr-x | test/language/parser.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/language/parser.rb b/test/language/parser.rb index 14e27d86b..a555c0082 100755 --- a/test/language/parser.rb +++ b/test/language/parser.rb @@ -397,7 +397,7 @@ file { "/tmp/yayness": } sub = interp.findclass("", "container::deep::sub") assert(sub, "Could not find sub") - assert_equal("base", sub.parentclass.type) + assert_equal("base", sub.parentclass.classname) # Now try it with a parent class being a fq class assert_nothing_raised { @@ -405,7 +405,7 @@ file { "/tmp/yayness": } sub = interp.findclass("", "container::one") assert(sub, "Could not find one") - assert_equal("sub", sub.parentclass.type) + assert_equal("container::deep::sub", sub.parentclass.classname) # Finally, try including a qualified class assert_nothing_raised("Could not include fully qualified class") { @@ -431,7 +431,7 @@ file { "/tmp/yayness": assert_nothing_raised do out = parser.parse "Exec { path => '/usr/bin:/usr/sbin' }" assert_instance_of(AST::ASTArray, out) - assert_equal("", parser.interp.findclass("", "").type) + assert_equal("", parser.interp.findclass("", "").classname) assert_equal("", parser.interp.findclass("", "").namespace) assert_equal(out.object_id, parser.interp.findclass("", "").code.object_id) end |
