diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-10-24 18:59:40 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-10-24 18:59:40 -0700 |
commit | a754c1379286242d2204cbfffeb84396e1a0527e (patch) | |
tree | c1d8c84d641494f0a55635f9c959ae1b40e87382 /spec | |
parent | bd0b0a34e4dbb60fe61bbc8716df90e8f7c7d19a (diff) | |
download | chef-a754c1379286242d2204cbfffeb84396e1a0527e.tar.gz |
remove lolwut from tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/service/solaris_smf_service_spec.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/unit/provider/service/solaris_smf_service_spec.rb b/spec/unit/provider/service/solaris_smf_service_spec.rb index 33fc613fec..2f790a0ebb 100644 --- a/spec/unit/provider/service/solaris_smf_service_spec.rb +++ b/spec/unit/provider/service/solaris_smf_service_spec.rb @@ -103,7 +103,6 @@ describe Chef::Provider::Service::Solaris do end it "should call svcadm enable -s chef" do - allow(@new_resource).to receive(:enable_command).and_return("#{@new_resource.enable_command}") expect(@provider).not_to receive(:shell_out!).with("/usr/sbin/svcadm clear #{@current_resource.service_name}") expect(@provider).to receive(:shell_out!).with("/usr/sbin/svcadm enable -s #{@current_resource.service_name}").and_return(@status) expect(@provider.enable_service).to be_true @@ -111,7 +110,6 @@ describe Chef::Provider::Service::Solaris do end it "should call svcadm enable -s chef for start_service" do - allow(@new_resource).to receive(:start_command).and_return("#{@new_resource.start_command}") expect(@provider).not_to receive(:shell_out!).with("/usr/sbin/svcadm clear #{@current_resource.service_name}") expect(@provider).to receive(:shell_out!).with("/usr/sbin/svcadm enable -s #{@current_resource.service_name}").and_return(@status) expect(@provider.start_service).to be_true @@ -122,7 +120,6 @@ describe Chef::Provider::Service::Solaris do @status = double("Status", :exitstatus => 0, :stdout => 'state maintenance') allow(@provider).to receive(:shell_out!).and_return(@status) @provider.load_current_resource - allow(@new_resource).to receive(:enable_command).and_return("#{@new_resource.enable_command}") expect(@provider).to receive(:shell_out!).with("/usr/sbin/svcadm clear #{@current_resource.service_name}").and_return(@status) expect(@provider).to receive(:shell_out!).with("/usr/sbin/svcadm enable -s #{@current_resource.service_name}").and_return(@status) expect(@provider.enable_service).to be_true |