diff options
Diffstat (limited to 'spec/integration')
-rwxr-xr-x | spec/integration/node/facts.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/integration/node/facts.rb b/spec/integration/node/facts.rb index d065918be..c2f876578 100755 --- a/spec/integration/node/facts.rb +++ b/spec/integration/node/facts.rb @@ -10,7 +10,14 @@ describe Puppet::Node::Facts do after { Puppet::Node::Facts.indirection.clear_cache } it "should expire any cached node instances when it is saved" do - raise "This test fails" + Puppet::Node::Facts.indirection.stubs(:terminus_class).returns :yaml + terminus = Puppet::Node::Facts.indirection.terminus(:yaml) + + terminus.expects(:save) + Puppet::Node.expects(:expire).with("me") + + facts = Puppet::Node::Facts.new("me") + facts.save end it "should be able to delegate to the :yaml terminus" do |