Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[CHEF-2964] Update mocking in a spec, affected by the Simple service …

…provider moving to shell_out.
  • Loading branch information...
commit 81e81289d9ac08ae2491687486b3c9733c7eff7a 1 parent 38a4b74
@andreacampi andreacampi authored btm committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 chef/spec/unit/provider/service/insserv_service_spec.rb
View
4 chef/spec/unit/provider/service/insserv_service_spec.rb
@@ -28,8 +28,8 @@
@current_resource = Chef::Resource::Service.new("initgrediant")
@provider = Chef::Provider::Service::Insserv.new(@new_resource, @run_context)
- @status = mock("Process::Status mock", :exitstatus => 0)
- @provider.stub!(:popen4).and_return(@status)
+ @status = mock("Process::Status mock", :exitstatus => 0, :stdout => "")
+ @provider.stub!(:shell_out!).and_return(@status)
end
describe "load_current_resource" do
Please sign in to comment.
Something went wrong with that request. Please try again.