Permalink
Browse files

Fixed test_nested_libs_will_be_flattened to use File::PATH_SEPARATOR

  • Loading branch information...
1 parent cae4327 commit 0b11f0fada3e9a4cf11eb5cde78b91eff42741fe @jimweirich jimweirich committed Jun 6, 2009
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

0 comments on commit 0b11f0f

Please sign in to comment.