diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-02-26 13:48:15 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-02-26 13:48:15 -0800 |
commit | dd4ee7acf0044e6e9c0400d13a980c446dc3f529 (patch) | |
tree | 93b2407023297795342857c1d3187a1562218f3a | |
parent | 2173e31a10e668b8a5c6e088c8d3359333ec13b4 (diff) | |
download | chef-dd4ee7acf0044e6e9c0400d13a980c446dc3f529.tar.gz |
add an explicit check for --once
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/unit/application/client_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 1d9819ffa7..61a8b0c5fd 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -166,6 +166,10 @@ describe Chef::Application::Client, "reconfigure" do it_behaves_like "sets the configuration", "--interval 1800", client_fork: true end + context "with once" do + it_behaves_like "sets the configuration", "--once", client_fork: false + end + context "with daemonize" do it_behaves_like "sets the configuration", "--daemonize", client_fork: true end |