summaryrefslogtreecommitdiffstats
path: root/test/language/scope.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-04 16:59:30 -0500
committerLuke Kanies <luke@madstop.com>2007-09-04 16:59:30 -0500
commitb0a947589ea6c7abf5658d9e5038eb7d96a11339 (patch)
tree484b6a7ac6f33b23cc022e3b972bde6982e1ff3f /test/language/scope.rb
parent11b127bd6708a18b512ca5b3018ccff1200cc47a (diff)
downloadpuppet-b0a947589ea6c7abf5658d9e5038eb7d96a11339.tar.gz
puppet-b0a947589ea6c7abf5658d9e5038eb7d96a11339.tar.xz
puppet-b0a947589ea6c7abf5658d9e5038eb7d96a11339.zip
Flipped the switch so that compiles now return a Configuration instance instead of pre-extracting the configuration.
Diffstat (limited to 'test/language/scope.rb')
-rwxr-xr-xtest/language/scope.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/language/scope.rb b/test/language/scope.rb
index 213226241..b317fa4c8 100755
--- a/test/language/scope.rb
+++ b/test/language/scope.rb
@@ -419,17 +419,17 @@ Host <<||>>"
)
}
- objects = nil
+ config = nil
# We run it twice because we want to make sure there's no conflict
# if we pull it up from the database.
node = mknode
node.parameters = {"hostname" => node.name}
2.times { |i|
assert_nothing_raised {
- objects = interp.compile(node)
+ config = interp.compile(node)
}
- flat = objects.flatten
+ flat = config.extract.flatten
%w{puppet myhost}.each do |name|
assert(flat.find{|o| o.name == name }, "Did not find #{name}")
@@ -441,7 +441,7 @@ Host <<||>>"
end
def test_namespaces
- parser, scope, source = mkclassframing
+ scope = mkscope
assert_equal([""], scope.namespaces,
"Started out with incorrect namespaces")