summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/node/plain.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/indirector/node/plain.rb')
-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