summaryrefslogtreecommitdiff
path: root/test/optparse
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-24 20:46:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-24 20:46:14 +0000
commit3c2f707f1688a23602b9fdbc42db1970658b9945 (patch)
tree3bead907f725ae619e8682fcc790ae67c0652cb9 /test/optparse
parenta06cddb466eafb046fcfdf0fd60684acb0b3d0a3 (diff)
* 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/trunk@35467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/optparse')
-rw-r--r--test/optparse/test_summary.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/optparse/test_summary.rb b/test/optparse/test_summary.rb
index 2fad5f0..d777173 100644
--- a/test/optparse/test_summary.rb
+++ b/test/optparse/test_summary.rb
@@ -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