summaryrefslogtreecommitdiffstats
path: root/spec/unit/network/handler/fileserver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/network/handler/fileserver.rb')
-rw-r--r--spec/unit/network/handler/fileserver.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/unit/network/handler/fileserver.rb b/spec/unit/network/handler/fileserver.rb
index 4ba8e712d..386e77693 100644
--- a/spec/unit/network/handler/fileserver.rb
+++ b/spec/unit/network/handler/fileserver.rb
@@ -146,12 +146,9 @@ describe Puppet::Network::Handler::FileServer do
before :each do
@modules = ["one","two"]
- Puppet::Module.stubs(:all).returns(@modules.collect{ |p| File.join(@basedir,p)} )
@modules.each { |m| create_plugin(m, "facter") }
- @modules.each do |p|
- File.stubs(:directory?).with(File.join(@basedir,p,PLUGINS)).returns(true)
- end
+ Puppet::Node::Environment.new.stubs(:modulepath).returns @basedir
@mount = Puppet::Network::Handler::FileServer::PluginMount.new(PLUGINS)
@mount.allow("*")