diff --git a/test/test_rake_application_options.rb b/test/test_rake_application_options.rb index 320db5020..004b8ef3a 100644 --- a/test/test_rake_application_options.rb +++ b/test/test_rake_application_options.rb @@ -146,7 +146,8 @@ def test_rakefile end def test_rakelib - flags(['--rakelibdir', 'A:B:C'], ['--rakelibdir=A:B:C'], ['-R', 'A:B:C'], ['-RA:B:C']) do |opts| + dirs = %w(A B C).join(File::PATH_SEPARATOR) + flags(['--rakelibdir', dirs], ["--rakelibdir=#{dirs}"], ['-R', dirs], ["-R#{dirs}"]) do |opts| assert_equal ['A', 'B', 'C'], opts.rakelib end end