mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
test/ruby: tweaked heredocs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
480c84e1af
commit
3895e30074
6 changed files with 53 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue