diff options
| author | Josh Cooper <josh@puppetlabs.com> | 2011-07-18 22:28:18 -0700 |
|---|---|---|
| committer | Josh Cooper <josh@puppetlabs.com> | 2011-07-19 14:03:42 -0700 |
| commit | 26ee468e8b963d63933d9a27a65d55510ff87618 (patch) | |
| tree | 472f331f001c9938271ab184b48f5b441942bd6e /spec/unit/parser | |
| parent | d69bf48ecae71ff01679bb38cdeebc8f4a8b8b15 (diff) | |
| download | puppet-26ee468e8b963d63933d9a27a65d55510ff87618.tar.gz puppet-26ee468e8b963d63933d9a27a65d55510ff87618.tar.xz puppet-26ee468e8b963d63933d9a27a65d55510ff87618.zip | |
(#8489) Consistently use File::PATH_SEPARATOR
Puppet uses both colon and File::PATH_SEPARATOR in various places, which
does not work on Windows, where File::PATH_SEPARATOR is a semi-colon. This
commit changes the code and tests to consistently use File::PATH_SEPARATOR.
Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/type_loader_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/parser/type_loader_spec.rb b/spec/unit/parser/type_loader_spec.rb index 9367b61c8..58caeda05 100755 --- a/spec/unit/parser/type_loader_spec.rb +++ b/spec/unit/parser/type_loader_spec.rb @@ -102,7 +102,7 @@ describe Puppet::Parser::TypeLoader do @modulebase2 = File.join(@base, "second") FileUtils.mkdir_p(@modulebase2) - Puppet[:modulepath] = "#{@modulebase1}:#{@modulebase2}" + Puppet[:modulepath] = "#{@modulebase1}#{File::PATH_SEPARATOR}#{@modulebase2}" end def mk_module(basedir, name) |
