diff options
Diffstat (limited to 'spec/unit/application_spec.rb')
-rw-r--r-- | spec/unit/application_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb index e76e21bddc..10dff0e250 100644 --- a/spec/unit/application_spec.rb +++ b/spec/unit/application_spec.rb @@ -87,6 +87,13 @@ describe Chef::Application do @app.run end + describe "when enforce_license is set to true" do + it "should check the license acceptance" do + expect(@app).to receive(:check_license_acceptance) + @app.run(enforce_license: true) + end + end + it "should run the actual application" do expect(@app).to receive(:run_application).and_return(true) @app.run |