diff options
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/puppettest/parsertesting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/puppettest/parsertesting.rb b/test/lib/puppettest/parsertesting.rb index 666de076a..8186bf304 100644 --- a/test/lib/puppettest/parsertesting.rb +++ b/test/lib/puppettest/parsertesting.rb @@ -65,7 +65,7 @@ module PuppetTest::ParserTesting def mkscope(hash = {}) hash[:parser] ||= mkparser compiler ||= mkcompiler(hash[:parser]) - compiler.topscope.source = (hash[:parser].findclass("", "") || hash[:parser].newclass("")) + compiler.topscope.source = (hash[:parser].find_hostclass("", "") || hash[:parser].newclass("")) unless compiler.topscope.source raise "Could not find source for scope" |
