summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-02-26 13:48:15 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-02-26 13:48:15 -0800
commitdd4ee7acf0044e6e9c0400d13a980c446dc3f529 (patch)
tree93b2407023297795342857c1d3187a1562218f3a /spec
parent2173e31a10e668b8a5c6e088c8d3359333ec13b4 (diff)
downloadchef-dd4ee7acf0044e6e9c0400d13a980c446dc3f529.tar.gz
add an explicit check for --once
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/application/client_spec.rb4
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