diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-08-10 18:36:59 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-08-10 18:37:13 +0900 |
commit | 99e7fa5b3718d61d61427c67d244ec50b9eb8578 (patch) | |
tree | 34e74d18354ac62cbcd44bbdd29d791c2693e083 /test | |
parent | 1139bc8c20d243b17f159d6c6518df17fcf887fe (diff) | |
download | ruby-99e7fa5b3718d61d61427c67d244ec50b9eb8578.tar.gz |
[ruby/error_highlight] Make ErrorHighlight.spot accept Exception (https://github.com/ruby/error_highlight/pull/25)
... and move things from core_ext.rb to base.rb.
This will confine CRuby-dependent things to ErrorHighlight.spot.
https://github.com/ruby/error_highlight/commit/22d1dd7824
Diffstat (limited to 'test')
-rw-r--r-- | test/error_highlight/test_error_highlight.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/error_highlight/test_error_highlight.rb b/test/error_highlight/test_error_highlight.rb index 5b7c05e5f4..89c930f5e6 100644 --- a/test/error_highlight/test_error_highlight.rb +++ b/test/error_highlight/test_error_highlight.rb @@ -1150,7 +1150,7 @@ nil can't be coerced into Integer def test_custom_formatter custom_formatter = Object.new def custom_formatter.message_for(spot) - "\n\n" + spot.inspect + "\n\n" + spot.except(:script_lines).inspect end original_formatter, ErrorHighlight.formatter = ErrorHighlight.formatter, custom_formatter |