summaryrefslogtreecommitdiff
path: root/test/ruby/test_argf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 07:11:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 07:11:52 +0000
commit3895e300743be093c017dbd5569b946a549ce84b (patch)
tree27da35c9fab876220c7c05848568af9b0649d486 /test/ruby/test_argf.rb
parent480c84e1afbe54d4b63da64d26fab2d39819557a (diff)
test/ruby: tweaked heredocs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_argf.rb')
-rw-r--r--test/ruby/test_argf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb
index d6aa8f7295f..5ab2cdc07dc 100644
--- a/test/ruby/test_argf.rb
+++ b/test/ruby/test_argf.rb
@@ -934,7 +934,8 @@ class TestArgf < Test::Unit::TestCase
end
def test_wrong_type
- assert_separately([], <<-'end;')
+ assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
+ begin;
bug11610 = '[ruby-core:71140] [Bug #11610]'
ARGV[0] = nil
assert_raise(TypeError, bug11610) {gets}