summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2014-08-07 17:38:13 -0400
committerBryan McLellan <btm@loftninjas.org>2014-08-12 16:51:12 -0400
commitb7f83596f2ac47c4d41743900ad83db4153ea43c (patch)
tree5f589a670bb00039830e26a2cc40e5ac17ffb962 /spec
parent1cca6c457ad21b7d6127300a21ec0185dde20565 (diff)
downloadchef-b7f83596f2ac47c4d41743900ad83db4153ea43c.tar.gz
CHEF-5022: Rename start_type to current_start_type
This is to be more clear what current_start_type returns.
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/service/windows_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/service/windows_spec.rb b/spec/unit/provider/service/windows_spec.rb
index 0c71d0ff41..c51d07b20f 100644
--- a/spec/unit/provider/service/windows_spec.rb
+++ b/spec/unit/provider/service/windows_spec.rb
@@ -331,14 +331,14 @@ describe Chef::Provider::Service::Windows, "load_current_resource" do
{ :automatic => "auto start", :manual => "demand start", :disabled => "disabled" }.each do |type,win32|
it "sets the startup type to #{type} if it is something else" do
@new_resource.startup_type(type)
- @provider.stub(:start_type).and_return("fire")
+ @provider.stub(:current_start_type).and_return("fire")
@provider.should_receive(:set_startup_type).with(type)
@provider.action_configure_startup
end
it "leaves the startup type as #{type} if it is already set" do
@new_resource.startup_type(type)
- @provider.stub(:start_type).and_return(win32)
+ @provider.stub(:current_start_type).and_return(win32)
@provider.should_not_receive(:set_startup_type).with(type)
@provider.action_configure_startup
end