summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2008-07-22 17:53:06 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-08-01 08:54:05 +1000
commit404450a71581f1ac2a13ff9340992e4f999f3091 (patch)
treeb05f83e245c88a6efe4a8a6d01cf7c16782b8e4c /test/lib
parent03c76deb60927375e9b35c74a903130930ffddf2 (diff)
downloadpuppet-404450a71581f1ac2a13ff9340992e4f999f3091.tar.gz
puppet-404450a71581f1ac2a13ff9340992e4f999f3091.tar.xz
puppet-404450a71581f1ac2a13ff9340992e4f999f3091.zip
Add testing for the changes to resolve redmine #1427, where Kernel methods shadow
variables that the puppet template should otherwise see. Specific changes: * Added testing of the Scope#to_hash method, which returns a hash of name and value pairs in a scope or, optionally, in the scope and enclosing scopes. * Use member variables rather than methods in the function tests. * Fix up tests that fail once we move over to instance variables rather than methods: Puppet can no longer detect an undefined variable reference, so we end up failing any test that expected to get a parser error. * Several tests have manual checks introduced to simulate an end user manually writing the checks that used to be automatic, and others drop the validation that parsing fails when a variable is not in scope. * Added tests for legacy variable lookup and that the shadowing of local variables by Kernel methods is still in effect. Signed-off-by: Daniel Pittman <daniel@rimspace.net> (cherry picked from commit 5c5f315cceadc52203e53883b77bc01c1d7a2e7f)
Diffstat (limited to 'test/lib')
0 files changed, 0 insertions, 0 deletions