diff options
author | Tim Smith <tsmith@chef.io> | 2017-09-11 10:11:24 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-12 11:14:27 -0700 |
commit | 353832fd4c1ad7622d8942bf9b14b5dd8af95ba2 (patch) | |
tree | 0257b40f415f7cfaceae143b1cf2461b74342350 /spec/unit | |
parent | c9b5e176033cce4d6bbdaec75b356fe6cdf569d2 (diff) | |
download | chef-353832fd4c1ad7622d8942bf9b14b5dd8af95ba2.tar.gz |
Pull in updates from jdunn's PR
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/knife/bootstrap_spec.rb | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb index ea4c177d55..81c0b8a6cf 100644 --- a/spec/unit/knife/bootstrap_spec.rb +++ b/spec/unit/knife/bootstrap_spec.rb @@ -96,24 +96,8 @@ describe Chef::Knife::Bootstrap do end end - context "with :distro and :bootstrap_template cli options" do - let(:bootstrap_cli_options) { [ "--bootstrap-template", "my-template", "--distro", "other-template" ] } - - it "should select bootstrap template" do - expect(File.basename(knife.bootstrap_template)).to eq("my-template") - end - end - - context "with :distro and :template_file cli options" do - let(:bootstrap_cli_options) { [ "--distro", "my-template", "--template-file", "other-template" ] } - - it "should select bootstrap template" do - expect(File.basename(knife.bootstrap_template)).to eq("other-template") - end - end - context "with :bootstrap_template and :template_file cli options" do - let(:bootstrap_cli_options) { [ "--bootstrap-template", "my-template", "--template-file", "other-template" ] } + let(:bootstrap_cli_options) { [ "--bootstrap-template", "my-template", "other-template" ] } it "should select bootstrap template" do expect(File.basename(knife.bootstrap_template)).to eq("my-template") @@ -247,7 +231,7 @@ describe Chef::Knife::Bootstrap do end end - ["-d", "--distro", "-t", "--bootstrap-template", "--template-file"].each do |t| + ["-t", "--bootstrap-template"].each do |t| context "when #{t} option is given in the command line" do it "sets the knife :bootstrap_template config" do knife.parse_options([t, "blahblah"]) |