[Pkg-puppet-devel] [facter] 316/352: (maint) Stub all confines for lsbdistdescription on Solaris

Stig Sandbeck Mathisen ssm at debian.org
Sun Apr 6 22:21:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit aa1881a90b27b2fe4644b3eac7242bfe33cb1bca
Author: Adrien Thebo <git at somethingsinistral.net>
Date:   Mon Mar 10 12:09:37 2014 -0700

    (maint) Stub all confines for lsbdistdescription on Solaris
---
 spec/unit/lsbdistdescription_spec.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/spec/unit/lsbdistdescription_spec.rb b/spec/unit/lsbdistdescription_spec.rb
index 8a4d7c4..cf4f672 100755
--- a/spec/unit/lsbdistdescription_spec.rb
+++ b/spec/unit/lsbdistdescription_spec.rb
@@ -11,7 +11,8 @@ describe "lsbdistdescription fact" do
       end
 
       it "returns the description through lsb_release -d -s 2>/dev/null" do
-        Facter::Core::Execution.impl.stubs(:exec).with('lsb_release -d -s 2>/dev/null', anything).returns '"Gentoo Base System release 2.1"'
+        Facter::Core::Execution.stubs(:which).with('lsb_release').returns '/usr/bin/lsb_release'
+        Facter::Core::Execution.stubs(:exec).with('lsb_release -d -s 2>/dev/null', anything).returns '"Gentoo Base System release 2.1"'
         expect(Facter.fact(:lsbdistdescription).value).to eq 'Gentoo Base System release 2.1'
       end
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list