summaryrefslogtreecommitdiff
path: root/spec/unit/application_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-04-17 13:17:53 -0700
committerTim Smith <tsmith@chef.io>2019-04-17 13:17:53 -0700
commitc7326d0b518ad7c22ffdf70413f5955888aba432 (patch)
tree6261757353a3627eae13d01131522adaa48dfca9 /spec/unit/application_spec.rb
parentf6f4100cdb1d78fd189325220e8600a15f7e9bff (diff)
downloadchef-c7326d0b518ad7c22ffdf70413f5955888aba432.tar.gz
Improve the error message when no config can be loaded
Make it more clear that we're going to use the CLI options instead since we couldn't find a config file. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/application_spec.rb')
-rw-r--r--spec/unit/application_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb
index ef28dbb21b..480f38349f 100644
--- a/spec/unit/application_spec.rb
+++ b/spec/unit/application_spec.rb
@@ -162,7 +162,7 @@ describe Chef::Application do
it "should emit a warning" do
expect(Chef::Config).not_to receive(:from_file).with("/etc/chef/default.rb")
- expect(Chef::Log).to receive(:warn).with("No config file found or specified on command line, using command line options.")
+ expect(Chef::Log).to receive(:warn).with("No config file found or specified on command line, using command line options instead.")
@app.configure_chef
end
end