summaryrefslogtreecommitdiff
path: root/spec/unit/resource
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2014-08-07 17:25:56 -0400
committerBryan McLellan <btm@loftninjas.org>2014-08-12 16:51:10 -0400
commit940479ea0bbd5c8f2feeb1293db63cd396a484aa (patch)
tree45ffe6eddbf52229995f48a4e63cefe8b0da4ff6 /spec/unit/resource
parentf7dc2d50db5e780c7c0148f8895d84a3fd0fdf3d (diff)
downloadchef-940479ea0bbd5c8f2feeb1293db63cd396a484aa.tar.gz
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.
Diffstat (limited to 'spec/unit/resource')
-rw-r--r--spec/unit/resource/windows_service_spec.rb5
1 files changed, 5 insertions, 0 deletions
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