diff options
author | Luke Kanies <luke@madstop.com> | 2008-03-20 23:27:18 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-03-20 23:27:18 -0500 |
commit | 4f400d4d4da2185832daf5970b5f78b74320d011 (patch) | |
tree | 3e72bfec712068bc8ee8d30e6eb5126ffa88759d /spec | |
parent | 54bedb2bbae2b84fc8f9df8b95e0a904a4e709f7 (diff) | |
download | puppet-4f400d4d4da2185832daf5970b5f78b74320d011.tar.gz puppet-4f400d4d4da2185832daf5970b5f78b74320d011.tar.xz puppet-4f400d4d4da2185832daf5970b5f78b74320d011.zip |
Fixed #1147: Cached nodes are correctly considered out of
date if the node facts have been updated (thus causing
node facts to again be available in manifests, for those
cases where they were not).
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/unit/indirector/node/plain.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/indirector/node/plain.rb b/spec/unit/indirector/node/plain.rb index 105d0ed63..943af52b4 100755 --- a/spec/unit/indirector/node/plain.rb +++ b/spec/unit/indirector/node/plain.rb @@ -15,4 +15,10 @@ describe Puppet::Node::Plain do node.expects(:fact_merge) @searcher.find("mynode") end + + it "should use the version of the facts as its version" do + version = mock 'version' + Puppet::Node::Facts.expects(:version).with("me").returns version + @searcher.version("me").should equal(version) + end end |