Skip to content

Commit

Permalink
Don't hardcode path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Nov 1, 2011
1 parent 7f7e74f commit bf2be94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec-puppet/example/function_example_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def subject
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
Expand Down

0 comments on commit bf2be94

Please sign in to comment.