From 94e63add08c94d019c079e758e46ca727446d86b Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 20 Nov 2007 01:30:20 -0600 Subject: Fixing the last failing test relating to the environment changes --- spec/lib/shared_behaviours/file_serving.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/lib/shared_behaviours/file_serving.rb b/spec/lib/shared_behaviours/file_serving.rb index a5e80f89b..b5ab6b0fd 100644 --- a/spec/lib/shared_behaviours/file_serving.rb +++ b/spec/lib/shared_behaviours/file_serving.rb @@ -20,8 +20,9 @@ describe "Puppet::FileServing::Files", :shared => true do it "should use the file_server terminus when the 'puppet' URI scheme is used, no host name is present, and the process name is 'puppet'" do uri = "puppet:///mymod/my/file" + Puppet::Node::Environment.stubs(:new).returns(stub("env", :name => "testing")) Puppet.settings.stubs(:value).with(:name).returns("puppet") - Puppet.settings.stubs(:value).with(:modulepath, nil).returns("") + Puppet.settings.stubs(:value).with(:modulepath, "testing").returns("") Puppet.settings.stubs(:value).with(:modulepath).returns("") Puppet.settings.stubs(:value).with(:libdir).returns("") Puppet.settings.stubs(:value).with(:fileserverconfig).returns("/whatever") -- cgit