From 940479ea0bbd5c8f2feeb1293db63cd396a484aa Mon Sep 17 00:00:00 2001 From: Bryan McLellan Date: Thu, 7 Aug 2014 17:25:56 -0400 Subject: CHEF-5022: Add configure_startup action enable and disable actions will continue to set the startup type to automatic/disabled If you want the startup type to be manual, you can set the startup_type attribute and use action configure_startup. It also supports automatic and disabled. --- spec/unit/resource/windows_service_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/unit/resource') diff --git a/spec/unit/resource/windows_service_spec.rb b/spec/unit/resource/windows_service_spec.rb index dcf69a3c4d..c92c3be1b0 100644 --- a/spec/unit/resource/windows_service_spec.rb +++ b/spec/unit/resource/windows_service_spec.rb @@ -38,4 +38,9 @@ describe Chef::Resource::WindowsService, "initialize", :windows_only do resource.startup_type(:manual) expect(resource.startup_type).to eql(:manual) end + + it "allows the action to be 'configure_startup'" do + resource.action :configure_startup + resource.action.should == [:configure_startup] + end end -- cgit v1.2.1