diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-24 06:52:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-24 06:52:23 +0000 |
commit | 5d466e51fe8091c3a85899ac85fa68ad17048785 (patch) | |
tree | bd275bbf91fd0264777b28c69756924b1f47aabb /test | |
parent | 87b770c8e3a257b6255e1f3dc0c488ed88863c53 (diff) |
merge revision(s) 35455:
* lib/optparse.rb (OptionParser#to_a): should split by end-of-line
[ruby-dev:45568][Bug #6348]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/optparse/test_summary.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/optparse/test_summary.rb b/test/optparse/test_summary.rb index bda3b49890..2fad5f04dc 100644 --- a/test/optparse/test_summary.rb +++ b/test/optparse/test_summary.rb @@ -31,8 +31,8 @@ class TestOptionParser::SummaryTest < TestOptionParser end def test_summary - o = OptionParser.new("foo bar") - assert_equal("foo bar\n", o.to_s) - assert_equal(["foo bar"], o.to_a) + o = OptionParser.new("foo\nbar") + assert_equal("foo\nbar\n", o.to_s) + assert_equal(["foo", "bar"], o.to_a) end end |