Commit graph

6 commits

Author SHA1 Message Date
Yusuke Endoh
25d74b9527 Do not include a backtick in error messages and backtraces
[Feature #16495]
2024-02-15 18:42:31 +09:00
Yusuke Endoh
8f868a1a65 Update some tests for the new message format of NoMethodError 2023-02-20 10:33:06 +09:00
Yusuke Endoh
e946049665 [WIP] add error_squiggle gem
```
$ ./local/bin/ruby -e '1.time {}'
-e:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError)

1.time {}
 ^^^^^
Did you mean?  times
```

https://bugs.ruby-lang.org/issues/17930
2021-06-29 23:45:49 +09:00
Kenichi Kamiya
0a544c0c35
Fix segmentation fault when Module#name returns non string value [Bug #17754]
* Add test for NoMethodError#to_s does not segfault

* Ensure no segfault even if Module#name is overridden
2021-03-28 08:47:42 +09:00
Yuki Nishijima
6d4ab96c47 Make test for no method error more reliable
This test should not depend on the bahaviour of the did_you_mean gem.
2020-06-06 13:48:24 -04:00
Nobuyoshi Nakada
0cf75e3850 Split test_nomethod_error.rb 2019-12-31 19:43:36 +09:00