diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-22 07:14:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-22 07:14:12 +0000 |
commit | 17b6be1ddc507c3692f2a1b668ae891decef43c8 (patch) | |
tree | b0a9a6fe2f24a8a5fd779416ba55eb47edbff962 /test/ruby/test_exception.rb | |
parent | 17ca870a4dd27d1e8e23d0ca66bbc2306caaa912 (diff) |
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
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |