summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-09-03 13:45:34 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-09-08 11:10:06 -0700
commit4d392999589a2085015b53efa30e5925fc2f569c (patch)
tree1f9920031a124777409be71911930a92a71e5226
parentc8a9c9bb2d0960fad20d09c029f301e690dfcc15 (diff)
downloadchef-4d392999589a2085015b53efa30e5925fc2f569c.tar.gz
spec fix for gentoo service
-rw-r--r--spec/unit/provider/service/gentoo_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/service/gentoo_service_spec.rb b/spec/unit/provider/service/gentoo_service_spec.rb
index 95dc04108d..022a73cc9a 100644
--- a/spec/unit/provider/service/gentoo_service_spec.rb
+++ b/spec/unit/provider/service/gentoo_service_spec.rb
@@ -128,14 +128,14 @@ describe Chef::Provider::Service::Gentoo do
describe Chef::Provider::Service::Gentoo, "enable_service" do
it "should call rc-update add *service* default" do
- @provider.should_receive(:run_command).with({:command => "/sbin/rc-update add chef default"})
+ @provider.should_receive(:shell_out!).with("/sbin/rc-update add chef default")
@provider.enable_service()
end
end
describe Chef::Provider::Service::Gentoo, "disable_service" do
it "should call rc-update del *service* default" do
- @provider.should_receive(:run_command).with({:command => "/sbin/rc-update del chef default"})
+ @provider.should_receive(:shell_out!).with("/sbin/rc-update del chef default")
@provider.disable_service()
end
end