diff options
author | Tom Duffield <tom@chef.io> | 2016-10-26 12:48:04 -0500 |
---|---|---|
committer | Tom Duffield <tom@chef.io> | 2016-10-28 14:20:49 -0500 |
commit | b6bb53f731ca9c334ae3b2a2744daf0c027fc320 (patch) | |
tree | 31864d1fe54dcc4bda11117536aa9e7a7d668361 | |
parent | 1c7392cb2f002f700cbae31936512e7d73ae4a5d (diff) | |
download | chef-b6bb53f731ca9c334ae3b2a2744daf0c027fc320.tar.gz |
Update output assertion for environment set specstd/rfc018/add-field-separator-flag
This test was originally written against a KnifeSupport that wasn't
actually pulling in the instance variables (i.e. :attribute) when
parsing the data. When running this command manually with Knife
v12.15.19, I get the output as now described in this test.
Signed-off-by: Tom Duffield <tom@chef.io>
-rw-r--r-- | spec/integration/knife/node_environment_set_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/integration/knife/node_environment_set_spec.rb b/spec/integration/knife/node_environment_set_spec.rb index 6dadecf76a..10fec5723f 100644 --- a/spec/integration/knife/node_environment_set_spec.rb +++ b/spec/integration/knife/node_environment_set_spec.rb @@ -31,7 +31,10 @@ describe "knife node environment set", :workstation do it "sets an environment on a node" do knife("node environment set cons lisp").should_succeed /chef_environment:.*lisp/ - knife("node show cons -a chef_environment").should_succeed /Environment:.*lisp/ + knife("node show cons -a chef_environment").should_succeed <<EOM +cons: + chef_environment: lisp +EOM end it "with no environment" do |