summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-08-07 14:59:20 -0700
committerGitHub <noreply@github.com>2019-08-07 14:59:20 -0700
commitc08bcca7d06ff3159b52940779d77ce5888214b0 (patch)
tree2a50c92ec3ae980f4cd3e6c0b10eeea8ebd2ec88 /spec
parente1bbb76da532e944538ae8d78facddf2380d15a1 (diff)
parentcd9614237444854de3ed152c776749823ca12f58 (diff)
downloadchef-c08bcca7d06ff3159b52940779d77ce5888214b0.tar.gz
Merge pull request #8772 from MsysTechnologiesllc/dh/MSYS-1057_fix_knife_node_environment
fix knife node environment set output
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/knife/node_environment_set_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/knife/node_environment_set_spec.rb b/spec/unit/knife/node_environment_set_spec.rb
index 5b704c4219..6a6d48cc2f 100644
--- a/spec/unit/knife/node_environment_set_spec.rb
+++ b/spec/unit/knife/node_environment_set_spec.rb
@@ -47,6 +47,11 @@ describe Chef::Knife::NodeEnvironmentSet do
@knife.run
end
+ it "sets the environment to config for display" do
+ @knife.run
+ expect(@knife.config[:environment]).to eq("bar")
+ end
+
it "should print the environment" do
expect(@knife).to receive(:output).and_return(true)
@knife.run