merge revision(s) 35467:

* lib/optparse.rb (OptionParser#to_a): split for each lines.
	  [ruby-dev:45568][Bug #6348]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-04-24 20:57:07 +00:00
parent bea7c1c899
commit 864fdcfb11
4 changed files with 10 additions and 5 deletions

View file

@ -33,6 +33,6 @@ class TestOptionParser::SummaryTest < TestOptionParser
def test_summary
o = OptionParser.new("foo\nbar")
assert_equal("foo\nbar\n", o.to_s)
assert_equal(["foo", "bar"], o.to_a)
assert_equal(["foo\n", "bar"], o.to_a)
end
end