diff options
| author | Luke Kanies <luke@madstop.com> | 2009-06-04 00:33:25 -0500 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-07-05 18:47:08 +1000 |
| commit | cddc365e9bac786c7a64240073b69bc54b6d2f2e (patch) | |
| tree | 3a68f908af4320e7957a2d27fd24d49565c0000f /test/language/scope.rb | |
| parent | fc1f8cdbee606da0d2a1a162942295d28cdcbf64 (diff) | |
| download | puppet-cddc365e9bac786c7a64240073b69bc54b6d2f2e.tar.gz puppet-cddc365e9bac786c7a64240073b69bc54b6d2f2e.tar.xz puppet-cddc365e9bac786c7a64240073b69bc54b6d2f2e.zip | |
Switching to LoadedCode from ASTSet
I also took the opportunity to clean up and simplify
the interface to the parts of the parser that interact
with this. Mostly it was method renames.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/language/scope.rb')
| -rwxr-xr-x | test/language/scope.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/language/scope.rb b/test/language/scope.rb index 403e569f7..8b06e0d64 100755 --- a/test/language/scope.rb +++ b/test/language/scope.rb @@ -417,16 +417,16 @@ Host <<||>>" "Did not add extra namespace correctly") end - def test_findclass_and_finddefine + def test_find_hostclass_and_find_definition parser = mkparser - # Make sure our scope calls the parser findclass method with + # Make sure our scope calls the parser find_hostclass method with # the right namespaces scope = mkscope :parser => parser parser.metaclass.send(:attr_accessor, :last) - methods = [:findclass, :finddefine] + methods = [:find_hostclass, :find_definition] methods.each do |m| parser.meta_def(m) do |namespace, name| @checked ||= [] |
