diff options
| author | Luke Kanies <luke@madstop.com> | 2007-08-23 13:25:40 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-08-23 13:25:40 -0500 |
| commit | 724fef1269bd593496bca9827a0ad7d9361e92d4 (patch) | |
| tree | 8b8fb73ee625680bcbc3913e2ee007c8b344f44f /test/lib | |
| parent | 3d68ed66ca7545c26b83a4c921d21f5aad710ee0 (diff) | |
| download | puppet-724fef1269bd593496bca9827a0ad7d9361e92d4.tar.gz puppet-724fef1269bd593496bca9827a0ad7d9361e92d4.tar.xz puppet-724fef1269bd593496bca9827a0ad7d9361e92d4.zip | |
Everything up to the parser (and the Modules) is ready to support multiple environments, including the parser having an environment setting. I have also created my first spec-based tests, for the interpreter (and deleted the old test/unit tests).
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/puppettest/parsertesting.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/puppettest/parsertesting.rb b/test/lib/puppettest/parsertesting.rb index 3e2930728..326c25756 100644 --- a/test/lib/puppettest/parsertesting.rb +++ b/test/lib/puppettest/parsertesting.rb @@ -49,9 +49,10 @@ module PuppetTest::ParserTesting end def mknode(name = nil) + require 'puppet/node' name ||= "nodename" Puppet::Network::Handler.handler(:node) - Puppet::Network::Handler::Node::SimpleNode.new(name) + Puppet::Node.new(name) end def mkinterp(args = {}) |
