summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/unit/knife/bootstrap_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index 90b3efe8cc..67c3a3ee4e 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -50,6 +50,10 @@ describe Chef::Knife::Bootstrap do
k
end
+ it "purposefully fails to prevent Chef Infra from promoting unstable -> current" do
+ expect(0).to eq(1)
+ end
+
it "fails when LicenseAcceptance fails" do
expect(LicenseAcceptance::Acceptor).to receive(:check_and_persist!).and_raise("foo")
expect { k = Chef::Knife::Bootstrap.new(bootstrap_cli_options) }.to raise_error("foo")