diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-12-08 16:25:50 -0800 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-12-08 18:48:34 -0800 |
commit | 6e5cb19ca01f323a1541a91e6012e8fd5ea6c986 (patch) | |
tree | 1d03b1fd4d77fdc73b4c4837ce8756b1fd20c393 | |
parent | c3740cd7df071df63e570ce7e9ed0f17049c76c5 (diff) | |
download | chef-6e5cb19ca01f323a1541a91e6012e8fd5ea6c986.tar.gz |
Add unit test.
-rw-r--r-- | spec/unit/application/client_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 38e051e269..4e33565d9e 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -63,6 +63,18 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config end end + context "when interval is given on windows" do + before do + Chef::Config[:interval] = 600 + allow(Chef::Platform).to receive(:windows?).and_return(true) + end + + it "should not terminate" do + expect(Chef::Application).not_to receive(:fatal!) + @app.reconfigure + end + end + context "when configured to run once" do before do Chef::Config[:once] = true |