diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-09-03 13:37:51 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-09-08 11:10:06 -0700 |
commit | 0d88d5637bbf9938fe03804a517199d2c31ae473 (patch) | |
tree | 9aee4a4474b986eb29f87289bed87598a74eefd4 /spec/unit/provider/service/insserv_service_spec.rb | |
parent | d2e8ebafde7af1d1dba916ee29e29bb1f5722d59 (diff) | |
download | chef-0d88d5637bbf9938fe03804a517199d2c31ae473.tar.gz |
spec fixes for insserv service
Diffstat (limited to 'spec/unit/provider/service/insserv_service_spec.rb')
-rw-r--r-- | spec/unit/provider/service/insserv_service_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/unit/provider/service/insserv_service_spec.rb b/spec/unit/provider/service/insserv_service_spec.rb index 04e63458a0..9ed03b519f 100644 --- a/spec/unit/provider/service/insserv_service_spec.rb +++ b/spec/unit/provider/service/insserv_service_spec.rb @@ -60,17 +60,16 @@ describe Chef::Provider::Service::Insserv do describe "enable_service" do it "should call insserv and create the default links" do - @provider.should_receive(:run_command).with({:command=>"/sbin/insserv -r -f #{@new_resource.service_name}"}) - @provider.should_receive(:run_command).with({:command=>"/sbin/insserv -d -f #{@new_resource.service_name}"}) + @provider.should_receive(:shell_out!).with("/sbin/insserv -r -f #{@new_resource.service_name}") + @provider.should_receive(:shell_out!).with("/sbin/insserv -d -f #{@new_resource.service_name}") @provider.enable_service end end describe "disable_service" do it "should call insserv and remove the links" do - @provider.should_receive(:run_command).with({:command=>"/sbin/insserv -r -f #{@new_resource.service_name}"}) + @provider.should_receive(:shell_out!).with("/sbin/insserv -r -f #{@new_resource.service_name}") @provider.disable_service end end end - |