Skip to content

Commit 7175910

Browse files
committed
Keep original test case testing spaces in some arguments
1 parent 15f9169 commit 7175910

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_rake_task_argument_parsing.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def test_two_arguments
3232
assert_equal ["one", "two"], args
3333
end
3434

35+
def test_can_handle_spaces_between_args
36+
name, args = @app.parse_task_string("name[one, two,\tthree , \tfour]")
37+
assert_equal "name", name
38+
assert_equal ["one", "two", "three", "four"], args
39+
end
40+
3541
def test_can_handle_spaces_between_all_args
3642
name, args = @app.parse_task_string("name[ one , two ,\tthree , \tfour ]")
3743
assert_equal "name", name

0 commit comments

Comments
 (0)