diff options
Diffstat (limited to 'spec/unit/provider/service/redhat_spec.rb')
-rwxr-xr-x | spec/unit/provider/service/redhat_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/service/redhat_spec.rb b/spec/unit/provider/service/redhat_spec.rb index 0f919ac84..82596fdcf 100755 --- a/spec/unit/provider/service/redhat_spec.rb +++ b/spec/unit/provider/service/redhat_spec.rb @@ -88,13 +88,13 @@ describe provider_class do end it "should consider the process running if the command returns 0" do @provider.expects(:texecute).with(:status, ['/sbin/service', 'myservice', 'status'], false) - $?.stubs(:exitstatus).returns(0) + $CHILD_STATUS.stubs(:exitstatus).returns(0) @provider.status.should == :running end [-10,-1,1,10].each { |ec| it "should consider the process stopped if the command returns something non-0" do @provider.expects(:texecute).with(:status, ['/sbin/service', 'myservice', 'status'], false) - $?.stubs(:exitstatus).returns(ec) + $CHILD_STATUS.stubs(:exitstatus).returns(ec) @provider.status.should == :stopped end } |