diff options
author | Tim Smith <tsmith@chef.io> | 2019-08-07 14:59:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-07 14:59:20 -0700 |
commit | c08bcca7d06ff3159b52940779d77ce5888214b0 (patch) | |
tree | 2a50c92ec3ae980f4cd3e6c0b10eeea8ebd2ec88 /spec | |
parent | e1bbb76da532e944538ae8d78facddf2380d15a1 (diff) | |
parent | cd9614237444854de3ed152c776749823ca12f58 (diff) | |
download | chef-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.rb | 5 |
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 |