Don't hardcode path separator
This commit is contained in:
parent
7f7e74f02c
commit
bf2be9407a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue