File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,24 @@ def test_execute
2828 end
2929
3030 def test_handle_options_directory
31+ return if win_platform?
3132 refute_equal '/nonexistent' , @cmd . options [ :directory ]
3233
3334 @cmd . handle_options %w[ --directory /nonexistent ]
3435
3536 assert_equal '/nonexistent' , @cmd . options [ :directory ]
3637 end
3738
39+ def test_handle_options_directory_windows
40+ return unless win_platform?
41+
42+ refute_equal '/nonexistent' , @cmd . options [ :directory ]
43+
44+ @cmd . handle_options %w[ --directory C:/nonexistent ]
45+
46+ assert_equal 'C:/nonexistent' , @cmd . options [ :directory ]
47+ end
48+
3849 def test_handle_options_invalid
3950 e = assert_raises OptionParser ::InvalidOption do
4051 @cmd . handle_options %w[ --no-modern --no-legacy ]
You can’t perform that action at this time.
0 commit comments