diff options
author | Rob Redpath <rob@digital-saints.com> | 2014-12-16 11:54:36 +0000 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-01-25 10:57:29 -0800 |
commit | dc49d75f230483e5b46d31e4241bc674e4ab3f68 (patch) | |
tree | b11ec3c22dcbe0c1a2b27e0490f5ff66bc6b5717 /spec/unit/application/client_spec.rb | |
parent | a3724a80976f71e674060e4b2dd4235c8eb48968 (diff) | |
download | chef-dc49d75f230483e5b46d31e4241bc674e4ab3f68.tar.gz |
add test
Diffstat (limited to 'spec/unit/application/client_spec.rb')
-rw-r--r-- | spec/unit/application/client_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 3838e736a7..cce3d11577 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -216,8 +216,21 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config end end end + + describe "when both the pidfile and lockfile opts are set to the same value" do + + before do + Chef::Config[:pid_file] = "/path/to/file" + Chef::Config[:lockfile] = "/path/to/file" + end + + it "should throw an exception" do + expect { @app.reconfigure }.to raise_error + end + end end + describe Chef::Application::Client, "setup_application" do before do @app = Chef::Application::Client.new |