summaryrefslogtreecommitdiffstats
path: root/spec/unit/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@reductivelabs.com>2010-01-21 23:18:34 -0800
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitaff59926bb8c8e7a136d6e87359e9857a4512da9 (patch)
treea712beee5e6c8b66b7ff8631e01f794f0db0ca43 /spec/unit/node
parent61636e4a15c365f57bc510fd601b1ac6be460614 (diff)
downloadpuppet-aff59926bb8c8e7a136d6e87359e9857a4512da9.tar.gz
puppet-aff59926bb8c8e7a136d6e87359e9857a4512da9.tar.xz
puppet-aff59926bb8c8e7a136d6e87359e9857a4512da9.zip
Fixing failing Environment unit tests
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'spec/unit/node')
-rwxr-xr-xspec/unit/node/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/node/environment.rb b/spec/unit/node/environment.rb
index 8945f28df..ac542d01b 100755
--- a/spec/unit/node/environment.rb
+++ b/spec/unit/node/environment.rb
@@ -189,7 +189,7 @@ describe Puppet::Node::Environment do
it "should ignore invalid modules" do
env = Puppet::Node::Environment.new("testing")
- env.expects(:modulepath).returns( %w{/a} )
+ env.stubs(:modulepath).returns %w{/a}
Dir.expects(:entries).with("/a").returns %w{foo bar}
Puppet::Module.expects(:new).with { |name, env| name == "foo" }.returns mock("foomod", :name => "foo")