Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed test_nested_libs_will_be_flattened to use File::PATH_SEPARATOR

  • Loading branch information...
commit 0b11f0fada3e9a4cf11eb5cde78b91eff42741fe 1 parent cae4327
@jimweirich jimweirich authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/lib/testtask_test.rb
View
3  test/lib/testtask_test.rb
@@ -36,7 +36,8 @@ def test_nested_libs_will_be_flattened
test_task = Rake::TestTask.new(:tx) do |t|
t.libs << ["A", "B"]
end
- assert_match(/lib:A:B/, test_task.ruby_opts_string)
+ expected = %w(lib A B).join(File::PATH_SEPARATOR)
+ assert_match(/#{expected}/, test_task.ruby_opts_string)
end
def test_empty_lib_path_implies_no_dash_I_option
Please sign in to comment.
Something went wrong with that request. Please try again.