summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xspec/integration/indirector/file_content/file_server.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/integration/indirector/file_content/file_server.rb b/spec/integration/indirector/file_content/file_server.rb
index ea892302e..e8f777ef8 100755
--- a/spec/integration/indirector/file_content/file_server.rb
+++ b/spec/integration/indirector/file_content/file_server.rb
@@ -29,9 +29,10 @@ describe Puppet::Indirector::FileContent::FileServer, " when finding files" do
file = File.join(modpath, "lib", "file.rb")
File.open(file, "w") { |f| f.puts "1" }
+ Puppet.settings[:modulepath] = "/no/such/file"
+
env = Puppet::Node::Environment.new("foo")
env.stubs(:modulepath).returns [path]
- Puppet.settings[:modulepath] = "/no/such/file"
result = Puppet::FileServing::Content.search("plugins", :environment => "foo", :recurse => true)