diff options
author | Luke Kanies <luke@madstop.com> | 2007-12-11 14:17:56 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-12-11 14:17:56 -0600 |
commit | a21ee0059fbfc31988430e7e6bf0d102cb6f1d5a (patch) | |
tree | c4a537d683b6c8447a0918c3567a0b95b38d0cda /spec | |
parent | add245a12ae65b0254165d6724143e4be99387f8 (diff) | |
download | puppet-a21ee0059fbfc31988430e7e6bf0d102cb6f1d5a.tar.gz puppet-a21ee0059fbfc31988430e7e6bf0d102cb6f1d5a.tar.xz puppet-a21ee0059fbfc31988430e7e6bf0d102cb6f1d5a.zip |
Copying the fact-loading code from the network client to
the Facter terminus until I have a better solution.
This problem was discovered becomes of #958.
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/unit/indirector/facts/facter.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/indirector/facts/facter.rb b/spec/unit/indirector/facts/facter.rb index e8ea721d3..1fad4c859 100755 --- a/spec/unit/indirector/facts/facter.rb +++ b/spec/unit/indirector/facts/facter.rb @@ -24,6 +24,11 @@ describe Puppet::Node::Facts::Facter do it "should have its name set to :facter" do Puppet::Node::Facts::Facter.name.should == :facter end + + it "should load facts on initialization" do + Puppet::Node::Facts::Facter.expects(:loadfacts) + Puppet::Node::Facts::Facter.new + end end module TestingCodeFacts @@ -68,3 +73,7 @@ describe Puppet::Node::Facts::Facter, " when destroying facts" do proc { @facter.destroy(@facts) }.should raise_error(Puppet::DevError) end end + +describe Puppet::Node::Facts::Facter, " when loading facts from the factpath" do + it "should load every fact in each factpath directory" +end |