summaryrefslogtreecommitdiff
path: root/spec/unit/provider/service/windows_spec.rb
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-06-11 12:44:18 -0700
committerClaire McQuin <claire@getchef.com>2014-06-18 15:25:44 -0700
commit598b3b28769f5019546fd8eaa33524d36e78ceb1 (patch)
treeced07a3436ce9ee2ff65f59c1f3845590fcf5f24 /spec/unit/provider/service/windows_spec.rb
parentd950ec4bea3333e8739630c37156d6b9d06eccda (diff)
downloadchef-598b3b28769f5019546fd8eaa33524d36e78ceb1.tar.gz
fix indenting
Diffstat (limited to 'spec/unit/provider/service/windows_spec.rb')
-rw-r--r--spec/unit/provider/service/windows_spec.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/unit/provider/service/windows_spec.rb b/spec/unit/provider/service/windows_spec.rb
index d60c6f03ff..33d3cde8fd 100644
--- a/spec/unit/provider/service/windows_spec.rb
+++ b/spec/unit/provider/service/windows_spec.rb
@@ -161,7 +161,7 @@ describe Chef::Provider::Service::Windows, "load_current_resource" do
@provider.stop_service
@new_resource.updated_by_last_action?.should be_false
end
-
+
it "should raise an error if the service is paused" do
Win32::Service.stub(:status).with(@new_resource.service_name).and_return(
double("StatusStruct", :current_state => "paused"))
@@ -194,13 +194,14 @@ describe Chef::Provider::Service::Windows, "load_current_resource" do
it "should pass custom timeout to the stop command if provided" do
Win32::Service.stub!(:status).with(@new_resource.service_name).and_return(
mock("StatusStruct", :current_state => "running"))
- @new_resource.timeout 1
+ @new_resource.timeout 1
Win32::Service.should_receive(:stop).with(@new_resource.service_name)
- Timeout.timeout(2) do
- expect { @provider.stop_service }.to raise_error(Timeout::Error)
- end
+ Timeout.timeout(2) do
+ expect { @provider.stop_service }.to raise_error(Timeout::Error)
+ end
@new_resource.updated_by_last_action?.should be_false
end
+
end
describe Chef::Provider::Service::Windows, "restart_service" do