[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Jesse Wolfe
jes5199 at gmail.com
Tue May 10 07:59:45 UTC 2011
The following commit has been merged in the experimental branch:
commit 5f0cf4ef50a3676229a1c824b9a730b6951e1c7a
Author: Jesse Wolfe <jes5199 at gmail.com>
Date: Mon Nov 1 11:40:48 2010 -0700
Maint: Don't use a stub for a Facts object in the compiler specs
The catalog compiler spec was overstubbing the Node::Facts object,
making it hard to test the interaction between those two systems.
diff --git a/spec/unit/indirector/catalog/compiler_spec.rb b/spec/unit/indirector/catalog/compiler_spec.rb
index 5cbb629..a9c2e3e 100755
--- a/spec/unit/indirector/catalog/compiler_spec.rb
+++ b/spec/unit/indirector/catalog/compiler_spec.rb
@@ -156,7 +156,8 @@ describe Puppet::Resource::Catalog::Compiler do
@compiler = Puppet::Resource::Catalog::Compiler.new
@request = stub 'request', :options => {}
- @facts = stub 'facts', :save => nil
+ @facts = Puppet::Node::Facts.new('hostname', "fact" => "value", "architecture" => "i386")
+ @facts.stubs(:save).returns(nil)
end
it "should do nothing if no facts are provided" do
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list