diff options
author | Ranjib Dey <dey.ranjib@gmail.com> | 2013-03-02 12:17:50 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 14:37:05 -0700 |
commit | 54cb19a7a45f8a83033554ae67bafe8e96bbb72e (patch) | |
tree | 7d667eb3a32333d6ca11b84a5a080dca63b3e311 /spec/unit/provider/service/upstart_service_spec.rb | |
parent | 0e3afdb294cc59ae02497e016a2ede754bc86309 (diff) | |
download | chef-54cb19a7a45f8a83033554ae67bafe8e96bbb72e.tar.gz |
removing an_return to as its deprecated
Diffstat (limited to 'spec/unit/provider/service/upstart_service_spec.rb')
-rw-r--r-- | spec/unit/provider/service/upstart_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/service/upstart_service_spec.rb b/spec/unit/provider/service/upstart_service_spec.rb index 2fc49c7aa2..4604d1b697 100644 --- a/spec/unit/provider/service/upstart_service_spec.rb +++ b/spec/unit/provider/service/upstart_service_spec.rb @@ -247,7 +247,7 @@ describe Chef::Provider::Service::Upstart do it "should not call '/sbin/start service_name' if it is already running" do @current_resource.stub!(:running).and_return(true) - @provider.should_not_receive(:run_command_with_systems_locale).with({:command => "/sbin/start #{@new_resource.service_name}"}).and_return(0) + @provider.should_not_receive(:run_command_with_systems_locale).with({:command => "/sbin/start #{@new_resource.service_name}"}) @provider.start_service() end @@ -307,7 +307,7 @@ describe Chef::Provider::Service::Upstart do it "should not call '/sbin/stop service_name' if it is already stopped" do @current_resource.stub!(:running).and_return(false) - @provider.should_not_receive(:run_command_with_systems_locale).with({:command => "/sbin/stop #{@new_resource.service_name}"}).and_return(0) + @provider.should_not_receive(:run_command_with_systems_locale).with({:command => "/sbin/stop #{@new_resource.service_name}"}) @provider.stop_service() end end |