diff options
author | Bryan McLellan <btm@loftninjas.org> | 2019-04-30 17:01:39 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2019-04-30 17:01:39 -0400 |
commit | 98fadb32768fc89e6b8262035c4a5186716890b0 (patch) | |
tree | 50f8148832a3f7ec5d32b0a745c704de26bec386 | |
parent | 52ed3d346c39dada17072e79745265550cb759b8 (diff) | |
download | chef-btm/knife-channel.tar.gz |
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-rw-r--r-- | spec/unit/knife/core/bootstrap_context_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/unit/knife/core/bootstrap_context_spec.rb b/spec/unit/knife/core/bootstrap_context_spec.rb index 2ed8b6bc51..8684a331f5 100644 --- a/spec/unit/knife/core/bootstrap_context_spec.rb +++ b/spec/unit/knife/core/bootstrap_context_spec.rb @@ -241,6 +241,17 @@ describe Chef::Knife::Core::BootstrapContext do end end + describe "#channel" do + it "defaults to stable" do + expect(bootstrap_context.channel).to eq "stable" + end + + it "when configured it sets the value" do + let(:chef_config) { { channel: "current" } } + expect(bootstrap_context.channel).to eq "current" + end + end + describe "#config_log_location" do context "when config_log_location is nil" do let(:chef_config) { { config_log_location: nil } } |