summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-06 14:47:14 -0600
committerLuke Kanies <luke@madstop.com>2008-03-06 14:47:14 -0600
commit35214eb7e2887ed4ab7e4ab0d8c92c724db495d2 (patch)
tree223adf6b353ac780b4850ba052fe4b5b27ca2135 /spec/unit/indirector/node
parent2261032801a39affa1a4c5e998fc2c4dd145503f (diff)
downloadpuppet-35214eb7e2887ed4ab7e4ab0d8c92c724db495d2.tar.gz
puppet-35214eb7e2887ed4ab7e4ab0d8c92c724db495d2.tar.xz
puppet-35214eb7e2887ed4ab7e4ab0d8c92c724db495d2.zip
Fixing the rest of #1113: External node commands can specify
an environment and Puppet will now use it.
Diffstat (limited to 'spec/unit/indirector/node')
-rwxr-xr-xspec/unit/indirector/node/exec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/indirector/node/exec.rb b/spec/unit/indirector/node/exec.rb
index 744a32b0a..5e6a9b1da 100755
--- a/spec/unit/indirector/node/exec.rb
+++ b/spec/unit/indirector/node/exec.rb
@@ -59,4 +59,10 @@ describe Puppet::Node::Exec, " when handling the results of the command" do
@node.expects(:fact_merge)
@searcher.find(@name)
end
+
+ it "should set the node's environment if one is provided" do
+ @result[:environment] = "yay"
+ @node.expects(:environment=).with "yay"
+ @searcher.find(@name)
+ end
end