[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1456-g2f0b1e5
Markus Roberts
Markus at reality.com
Tue Oct 27 17:04:41 UTC 2009
The following commit has been merged in the upstream branch:
commit 43443390ec210a9462631d400b27d68b33d6592d
Author: Markus Roberts <Markus at reality.com>
Date: Wed Sep 9 15:38:54 2009 -0700
Fix for ticket #2618 (stubbing so redhat tests run under debian)
This adds stubs so that the service script used by redhat appears
to exist while the tests are running, regardless of the operating
system being used to test.
Signed-off-by: Markus Roberts <Markus at reality.com>
diff --git a/spec/unit/provider/service/redhat.rb b/spec/unit/provider/service/redhat.rb
index eed8c9b..47997dc 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
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list