Skip to content

Commit

Permalink
Fix a RUBYLIB spec on Windows
Browse files Browse the repository at this point in the history
* The ruby man-page mentions colon-separated, but it is actually
  semi-colon-separated on Windows (because "C:/dir").
  • Loading branch information
eregon committed Jun 27, 2018
1 parent a454137 commit 98c7d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command_line/rubylib_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
paths.should include(dir)
end

it "adds a colon-separated list of directories to $LOAD_PATH" do
it "adds a File::PATH_SEPARATOR-separated list of directories to $LOAD_PATH" do
dir1, dir2 = tmp("rubylib/incl1"), tmp("rubylib/incl2")
ENV["RUBYLIB"] = "#{dir1}:#{dir2}"
ENV["RUBYLIB"] = "#{dir1}#{File::PATH_SEPARATOR}#{dir2}"
paths = ruby_exe("puts $LOAD_PATH").lines.map(&:chomp)
paths.should include(dir1)
paths.should include(dir2)
Expand Down

0 comments on commit 98c7d74

Please sign in to comment.