From 17b6be1ddc507c3692f2a1b668ae891decef43c8 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 22 Dec 2018 07:14:12 +0000 Subject: [PATCH] Moved regexps not to confuse ruby-mode.el git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_exception.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 88bd095228..a4a70eb5fc 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -700,7 +700,11 @@ end.join end def test_cause_at_end - assert_in_out_err([], <<-'end;', [], [/-: unexpected return\n/, /.*undefined local variable or method `n'.*\n/]) + errs = [ + /-: unexpected return\n/, + /.*undefined local variable or method `n'.*\n/, + ] + assert_in_out_err([], <<-'end;', [], errs) END{n}; END{return} end; end