summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-20 23:39:12 -0500
committerLuke Kanies <luke@madstop.com>2008-03-20 23:39:12 -0500
commit25b81b386b3581c1afb8c1ffcd23e2b1953472b4 (patch)
tree3cccd2b57480c6845791cc1734f7981f19a63fd4 /spec
parent4f400d4d4da2185832daf5970b5f78b74320d011 (diff)
downloadpuppet-25b81b386b3581c1afb8c1ffcd23e2b1953472b4.tar.gz
puppet-25b81b386b3581c1afb8c1ffcd23e2b1953472b4.tar.xz
puppet-25b81b386b3581c1afb8c1ffcd23e2b1953472b4.zip
Fixing a test I broke with my fix to #1147
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/indirector/catalog/compiler.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/indirector/catalog/compiler.rb b/spec/unit/indirector/catalog/compiler.rb
index 77638a410..a4a0acd58 100755
--- a/spec/unit/indirector/catalog/compiler.rb
+++ b/spec/unit/indirector/catalog/compiler.rb
@@ -171,7 +171,7 @@ describe Puppet::Node::Catalog::Compiler, " when determining a client's availabl
end
it "should use the client's Facts version as the available catalog version if it is the most recent" do
- Puppet::Node::Facts.expects(:version).with(@name).returns(5)
+ Puppet::Node::Facts.stubs(:version).with(@name).returns(5)
Puppet::Node.expects(:version).with(@name).returns(3)
@catalog.interpreter.stubs(:catalog_version).returns(4)
@@ -179,7 +179,7 @@ describe Puppet::Node::Catalog::Compiler, " when determining a client's availabl
end
it "should use the client's Node version as the available catalog version if it is the most recent" do
- Puppet::Node::Facts.expects(:version).with(@name).returns(3)
+ Puppet::Node::Facts.stubs(:version).with(@name).returns(3)
Puppet::Node.expects(:version).with(@name).returns(5)
@catalog.interpreter.stubs(:catalog_version).returns(4)
@@ -187,7 +187,7 @@ describe Puppet::Node::Catalog::Compiler, " when determining a client's availabl
end
it "should use the last parse date as the available catalog version if it is the most recent" do
- Puppet::Node::Facts.expects(:version).with(@name).returns(3)
+ Puppet::Node::Facts.stubs(:version).with(@name).returns(3)
Puppet::Node.expects(:version).with(@name).returns(4)
@catalog.interpreter.stubs(:catalog_version).returns(5)