summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-20 23:27:18 -0500
committerLuke Kanies <luke@madstop.com>2008-03-20 23:27:18 -0500
commit4f400d4d4da2185832daf5970b5f78b74320d011 (patch)
tree3e72bfec712068bc8ee8d30e6eb5126ffa88759d /spec
parent54bedb2bbae2b84fc8f9df8b95e0a904a4e709f7 (diff)
downloadpuppet-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-xspec/unit/indirector/node/plain.rb6
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