The change in #2590 (ea584787) clears the environment list that this
spec relies on. Reordered the spec so that doesn't happen anymore.

Signed-off-by: Jesse Wolfe <[email protected]>
---
 .../indirector/file_content/file_server.rb         |    3 ++-
 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 ea89230..e8f777e 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)
 
-- 
1.6.5

--

You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.


Reply via email to