summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJason Barnett <jason.w.barnett@gmail.com>2018-05-25 12:53:42 -0500
committerJason Barnett <jason.w.barnett@gmail.com>2018-05-25 12:56:09 -0500
commit97d3d5897a8125078f7f7e56dba6ba51494b8899 (patch)
treed7cf0607c0240193bf620e46a083b846e8b03421 /spec
parent2d687d12053e2888efa0441fa72f32faf6c7c5f7 (diff)
downloadchef-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')
-rw-r--r--spec/unit/provider/service/windows_spec.rb5
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