diff options
author | Jason Barnett <jason.w.barnett@gmail.com> | 2018-05-25 12:53:42 -0500 |
---|---|---|
committer | Jason Barnett <jason.w.barnett@gmail.com> | 2018-05-25 12:56:09 -0500 |
commit | 97d3d5897a8125078f7f7e56dba6ba51494b8899 (patch) | |
tree | d7cf0607c0240193bf620e46a083b846e8b03421 /spec/unit/provider | |
parent | 2d687d12053e2888efa0441fa72f32faf6c7c5f7 (diff) | |
download | chef-97d3d5897a8125078f7f7e56dba6ba51494b8899.tar.gz |
Fix :configure_startup action to configure delayed start
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the
best of my knowledge, is covered under an appropriate open
source license and I have the right under that license to
submit that work with modifications, whether created in whole
or in part by me, under the same open source license (unless
I am permitted to submit under a different license), as
Indicated in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including
all personal information I submit with it, including my
sign-off) is maintained indefinitely and may be redistributed
consistent with this project or the open source license(s)
involved.
Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
Diffstat (limited to 'spec/unit/provider')
-rw-r--r-- | spec/unit/provider/service/windows_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/provider/service/windows_spec.rb b/spec/unit/provider/service/windows_spec.rb index 24c3e07f39..18ea004795 100644 --- a/spec/unit/provider/service/windows_spec.rb +++ b/spec/unit/provider/service/windows_spec.rb @@ -801,6 +801,11 @@ describe Chef::Provider::Service::Windows, "load_current_resource", :windows_onl provider.action_configure_startup end end + + it "calls converge_delayed_start" do + expect(provider).to receive(:converge_delayed_start) + provider.action_configure_startup + end end describe Chef::Provider::Service::Windows, "set_start_type" do |