aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_alias.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_alias.rb
parent480c84e1afbe54d4b63da64d26fab2d39819557a (diff)
downloadruby-3895e300743be093c017dbd5569b946a549ce84b.tar.gz
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_alias.rb')
-rw-r--r--test/ruby/test_alias.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/ruby/test_alias.rb b/test/ruby/test_alias.rb
index 3fc1bb4000..e81636fa43 100644
--- a/test/ruby/test_alias.rb
+++ b/test/ruby/test_alias.rb
@@ -122,7 +122,8 @@ class TestAlias < Test::Unit::TestCase
end
def test_alias_wb_miss
- assert_normal_exit %q{
+ assert_normal_exit "#{<<-"begin;"}\n#{<<-'end;'}"
+ begin;
require 'stringio'
GC.verify_internal_consistency
GC.start
@@ -130,7 +131,7 @@ class TestAlias < Test::Unit::TestCase
alias_method :read_nonblock, :sysread
end
GC.verify_internal_consistency
- }
+ end;
end
def test_cyclic_zsuper
@@ -183,7 +184,8 @@ class TestAlias < Test::Unit::TestCase
def test_alias_in_module
bug9663 = '[ruby-core:61635] [Bug #9663]'
- assert_separately(['-', bug9663], <<-'end;')
+ assert_separately(['-', bug9663], "#{<<-"begin;"}\n#{<<-'end;'}")
+ begin;
bug = ARGV[0]
m = Module.new do