summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/provider/service/redhat.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/provider/service/redhat.rb b/spec/unit/provider/service/redhat.rb
index eed8c9bea..47997dca3 100755
--- a/spec/unit/provider/service/redhat.rb
+++ b/spec/unit/provider/service/redhat.rb
@@ -16,6 +16,8 @@ describe provider_class do
@provider = provider_class.new
@provider.resource = @resource
+ FileTest.stubs(:file?).with('/sbin/service').returns true
+ FileTest.stubs(:executable?).with('/sbin/service').returns true
end
it "should have an enabled? method" do