Navigation Menu

Skip to content

Commit

Permalink
[CHEF-2964] Update mocking in a spec, affected by the Simple service …
Browse files Browse the repository at this point in the history
…provider moving to shell_out.
  • Loading branch information
Andrea Campi authored and btm committed Apr 10, 2012
1 parent 38a4b74 commit 81e8128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chef/spec/unit/provider/service/insserv_service_spec.rb
Expand Up @@ -28,8 +28,8 @@
@current_resource = Chef::Resource::Service.new("initgrediant") @current_resource = Chef::Resource::Service.new("initgrediant")


@provider = Chef::Provider::Service::Insserv.new(@new_resource, @run_context) @provider = Chef::Provider::Service::Insserv.new(@new_resource, @run_context)
@status = mock("Process::Status mock", :exitstatus => 0) @status = mock("Process::Status mock", :exitstatus => 0, :stdout => "")
@provider.stub!(:popen4).and_return(@status) @provider.stub!(:shell_out!).and_return(@status)
end end


describe "load_current_resource" do describe "load_current_resource" do
Expand Down

0 comments on commit 81e8128

Please sign in to comment.