diff options
author | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
---|---|---|
committer | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
commit | d4b83be375ac1dead058e091191ee7c7b7c24c8a (patch) | |
tree | dc825687392ae3068de5b764be60c53122d9e02a /spec/integration/indirector/file_content/file_server_spec.rb | |
parent | 229cbb976fe0f70f5f30548b83517b415840f9bb (diff) | |
parent | 1681684857c6e39d60d87b0b3520d8783977ceff (diff) | |
download | puppet-upstream/3.7.0.tar.gz |
Imported Upstream version 3.7.0upstream/3.7.0
Diffstat (limited to 'spec/integration/indirector/file_content/file_server_spec.rb')
-rwxr-xr-x | spec/integration/indirector/file_content/file_server_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/indirector/file_content/file_server_spec.rb b/spec/integration/indirector/file_content/file_server_spec.rb index 103a028a2..ee0db17a9 100755 --- a/spec/integration/indirector/file_content/file_server_spec.rb +++ b/spec/integration/indirector/file_content/file_server_spec.rb @@ -48,9 +48,9 @@ describe Puppet::Indirector::FileContent::FileServer, " when finding files" do file = File.join(modpath, "files", "myfile") File.open(file, "wb") { |f| f.write "1\r\n" } - Puppet.settings[:modulepath] = path + env = Puppet::Node::Environment.create(:foo, [path]) - result = Puppet::FileServing::Content.indirection.find("modules/mymod/myfile") + result = Puppet::FileServing::Content.indirection.find("modules/mymod/myfile", :environment => env) result.should_not be_nil result.should be_instance_of(Puppet::FileServing::Content) |