summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-02-18 12:00:29 -0600
committerLuke Kanies <luke@madstop.com>2009-02-19 16:22:45 -0600
commit19b85346a60a05fd146fe39742cb873490eb6b4c (patch)
tree6569d5b0be9657d1e4efe59e268368b5aaf56a3d /spec
parent1be7c763b51c0cb6b271429f83ca4afb733bbf63 (diff)
downloadpuppet-19b85346a60a05fd146fe39742cb873490eb6b4c.tar.gz
puppet-19b85346a60a05fd146fe39742cb873490eb6b4c.tar.xz
puppet-19b85346a60a05fd146fe39742cb873490eb6b4c.zip
Migrating the old FileServer to the new Module/Environment code
The interface is *much* cleaner, and I'd removed one of the methods used in this code. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
-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("*")