summaryrefslogtreecommitdiffstats
path: root/test/util/execution.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/util/execution.rb')
-rwxr-xr-xtest/util/execution.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/util/execution.rb b/test/util/execution.rb
index 4df606806..ec56c84bb 100755
--- a/test/util/execution.rb
+++ b/test/util/execution.rb
@@ -16,12 +16,12 @@ class TestPuppetUtilExecution < Test::Unit::TestCase
assert_nothing_raised do
Puppet::Util::Execution.withenv :testing => "foo" do
- $ran = true
+ $ran = ENV["testing"]
end
end
assert_equal("yay", ENV["testing"])
- assert_equal(true, $ran)
+ assert_equal("foo", $ran)
ENV["rah"] = "yay"
assert_raise(ArgumentError) do