aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_encoding.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
commit12b12722d1b544e64d653a1bede6854eda2ce558 (patch)
tree27da35c9fab876220c7c05848568af9b0649d486 /test/ruby/test_encoding.rb
parent13293658d190edc2dda35be6aec20def09236e72 (diff)
downloadruby-12b12722d1b544e64d653a1bede6854eda2ce558.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_encoding.rb')
-rw-r--r--test/ruby/test_encoding.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_encoding.rb b/test/ruby/test_encoding.rb
index 06559651c5..8f73a8fce1 100644
--- a/test/ruby/test_encoding.rb
+++ b/test/ruby/test_encoding.rb
@@ -117,9 +117,10 @@ class TestEncoding < Test::Unit::TestCase
end
def test_errinfo_after_autoload
+ assert_separately(%w[--disable=gems], "#{<<~"begin;"}\n#{<<~'end;'}")
bug9038 = '[ruby-core:57949] [Bug #9038]'
- assert_separately(%w[--disable=gems], <<-"end;")
- assert_raise_with_message(SyntaxError, /unknown regexp option - Q/, #{bug9038.dump}) {
+ begin;
+ assert_raise_with_message(SyntaxError, /unknown regexp option - Q/, bug9038) {
eval("/regexp/sQ")
}
end;