summaryrefslogtreecommitdiff
path: root/spec/unit/provider/service/gentoo_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/provider/service/gentoo_service_spec.rb')
-rw-r--r--spec/unit/provider/service/gentoo_service_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/unit/provider/service/gentoo_service_spec.rb b/spec/unit/provider/service/gentoo_service_spec.rb
index 8d4ada043b..b658cab4d8 100644
--- a/spec/unit/provider/service/gentoo_service_spec.rb
+++ b/spec/unit/provider/service/gentoo_service_spec.rb
@@ -7,9 +7,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,10 +24,10 @@ describe Chef::Provider::Service::Gentoo do
@node = Chef::Node.new
@events = Chef::EventDispatch::Dispatcher.new
@run_context = Chef::RunContext.new(@node, {}, @events)
-
+
@new_resource = Chef::Resource::Service.new("chef")
@current_resource = Chef::Resource::Service.new("chef")
-
+
@provider = Chef::Provider::Service::Gentoo.new(@new_resource, @run_context)
Chef::Resource::Service.stub!(:new).and_return(@current_resource)
@status = mock("Status", :exitstatus => 0, :stdout => @stdout)
@@ -39,7 +39,7 @@ describe Chef::Provider::Service::Gentoo do
end
# new test: found_enabled state
#
- describe "load_current_resource" do
+ describe "load_current_resource" do
it "should raise Chef::Exceptions::Service if /sbin/rc-update does not exist" do
File.should_receive(:exists?).with("/sbin/rc-update").and_return(false)
@provider.define_resource_requirements
@@ -79,7 +79,7 @@ describe Chef::Provider::Service::Gentoo do
File.stub!(:exists?).with("/etc/runlevels/default/chef").and_return(true)
File.stub!(:readable?).with("/etc/runlevels/default/chef").and_return(false)
end
-
+
it "should set enabled to false" do
@provider.load_current_resource
@current_resource.enabled.should be_false
@@ -101,10 +101,10 @@ describe Chef::Provider::Service::Gentoo do
end
end
-
+
it "should return the current_resource" do
@provider.load_current_resource.should == @current_resource
- end
+ end
it "should support the status command automatically" do
@provider.load_current_resource
@@ -122,7 +122,7 @@ describe Chef::Provider::Service::Gentoo do
end
end
-
+
describe "action_methods" do
before(:each) { @provider.stub!(:load_current_resource).and_return(@current_resource) }