diff options
| author | Luke Kanies <luke@madstop.com> | 2008-02-08 14:25:52 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-02-08 14:25:52 -0600 |
| commit | 5a0e34b4f8da22e1830ec7d0a730c3686665bceb (patch) | |
| tree | d8635f754c2a0fee69e103cf6d85792ff4e736a1 /test/language/scope.rb | |
| parent | 82720d5327b30839a29035ee0b498b940ffc7a5a (diff) | |
| download | puppet-5a0e34b4f8da22e1830ec7d0a730c3686665bceb.tar.gz puppet-5a0e34b4f8da22e1830ec7d0a730c3686665bceb.tar.xz puppet-5a0e34b4f8da22e1830ec7d0a730c3686665bceb.zip | |
Refactoring the AST classes just a bit. I realized that
all of the evaluate() methods only ever accepted a scope,
and sometimes one other option, so I switched them all to
use named arguments instead of a hash.
Diffstat (limited to 'test/language/scope.rb')
| -rwxr-xr-x | test/language/scope.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/language/scope.rb b/test/language/scope.rb index ec11a864e..db9d465bf 100755 --- a/test/language/scope.rb +++ b/test/language/scope.rb @@ -284,7 +284,7 @@ class TestScope < Test::Unit::TestCase ) assert_nothing_raised do - function.evaluate :scope => scope + function.evaluate scope end scope.compile.send(:evaluate_generators) @@ -379,7 +379,7 @@ class TestScope < Test::Unit::TestCase obj.exported = true # And then evaluate it - obj.evaluate :scope => config.topscope + obj.evaluate config.topscope # And run the loop. config.send(:evaluate_generators) |
