Don't hardcode path separator

This commit is contained in:
Tim Sharpe 2011-11-01 21:59:56 +13:00
parent 7f7e74f02c
commit bf2be9407a
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module RSpec::Puppet
function_name = self.class.top_level_description.downcase
Puppet[:modulepath] = self.respond_to?(:module_path) ? module_path : RSpec.configuration.module_path
Puppet[:libdir] = Dir["#{Puppet[:modulepath]}/*/lib"].entries.join(':')
Puppet[:libdir] = Dir["#{Puppet[:modulepath]}/*/lib"].entries.join(File::PATH_SEPARATOR)
Puppet::Parser::Functions.autoloader.loadall
scope = Puppet::Parser::Scope.new