Skip to content

Commit

Permalink
Keep original test case testing spaces in some arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Gonzalo <grzuy0@gmail.com>
  • Loading branch information
grzuy committed Mar 7, 2018
1 parent 15f9169 commit 0e2cd0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_rake_task_argument_parsing.rb
Expand Up @@ -32,6 +32,12 @@ def test_two_arguments
assert_equal ["one", "two"], args
end

def test_can_handle_spaces_between_args
name, args = @app.parse_task_string("name[one, two,\tthree , \tfour]")
assert_equal "name", name
assert_equal ["one", "two", "three", "four"], args
end

def test_can_handle_spaces_between_all_args
name, args = @app.parse_task_string("name[ one , two ,\tthree , \tfour ]")
assert_equal "name", name
Expand Down

0 comments on commit 0e2cd0f

Please sign in to comment.