diff options
| author | Rein Henrichs <rein@puppetlabs.com> | 2010-06-07 15:45:45 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 9d0a38ee1baa295fb8d2b69f13cbfc91b5de5800 (patch) | |
| tree | ffd8f1cb1dda2d0d60866ad93983ed600b4ab801 /spec/unit | |
| parent | 2874729efa22c56dde61654e7429bdbb4e41f9ef (diff) | |
| download | puppet-9d0a38ee1baa295fb8d2b69f13cbfc91b5de5800.tar.gz puppet-9d0a38ee1baa295fb8d2b69f13cbfc91b5de5800.tar.xz puppet-9d0a38ee1baa295fb8d2b69f13cbfc91b5de5800.zip | |
[#3921] Add facts_terminus setting to Puppet settings
* defaults to "facter"
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/application/agent.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/application/agent.rb b/spec/unit/application/agent.rb index 598492bc7..f93424258 100755 --- a/spec/unit/application/agent.rb +++ b/spec/unit/application/agent.rb @@ -183,6 +183,7 @@ describe Puppet::Application::Agent do Puppet.stubs(:info) FileTest.stubs(:exists?).returns(true) Puppet.stubs(:[]) + Puppet.stubs(:[]=) Puppet.stubs(:[]).with(:libdir).returns("/dev/null/lib") Puppet.settings.stubs(:print_config?) Puppet.settings.stubs(:print_config) @@ -333,8 +334,8 @@ describe Puppet::Application::Agent do @puppetd.setup end - it "should tell the facts to use facter" do - Puppet::Node::Facts.expects(:terminus_class=).with(:facter) + it "should change the fact_terminus setting to 'facter'" do + Puppet.expects(:[]=).with(:fact_terminus, :facter) @puppetd.setup end |
