summaryrefslogtreecommitdiff
path: root/test/did_you_mean
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/did_you_mean] Support the new message format of NameError inYusuke Endoh2023-02-191-2/+2
| | | | | | | | | | | | | | | Ruby 3.3 (https://github.com/ruby/did_you_mean/pull/184) This change accepts the following change of the message of NameError in a test. https://bugs.ruby-lang.org/issues/18285#note-37 ``` old: undefined method `sizee' for #<File:...> new: undefined method `sizee' for an instance of File ```
* [ruby/did_you_mean] Do not suggest #name= for #name and vice versaMatthew Boeh2022-12-051-0/+18
| | | | | | | | | (https://github.com/ruby/did_you_mean/pull/180) * Do not suggest #name= for #name and vice versa * Avoid allocating unnecessary MatchData Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com> Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com>
* [ruby/did_you_mean] Fixed correction duplicates in VariableNameCheckerImir Kiyamov2022-09-011-0/+12
| | | | https://github.com/ruby/did_you_mean/commit/c3fc412f6f
* Manually merged https://github.com/ruby/did_you_mean/pull/177Hiroshi SHIBATA2022-06-078-42/+58
|
* Rewrite with assert_ractor for multiple ractor environmentHiroshi SHIBATA2022-05-201-71/+86
|
* Picked the missing test file from ↵Hiroshi SHIBATA2022-05-201-0/+102
| | | | https://github.com/ruby/did_you_mean/commit/8faba54b2d3ec9aa570691775f143801308c5b2f
* Sync did_you_meanYuki Nishijima2021-12-242-3/+8
|
* Revert the commits for did_you_meanYuki Nishijima2021-12-232-8/+3
| | | | | | This reverts commit feaf4fbc3fa16382fbd07158c448c7b5bdae78b5. This reverts commit 0d4bfbdbe1f880c712b3e60de5fce423e6096f8d. This reverts commit ac4e0978ee4358430396403065eabe1aca05784f.
* Remove test that activates Ractor unexpectedlyYuki Nishijima2021-12-231-102/+0
|
* * gems/default_gems: Sync did_you_meanYuki Nishijima2021-12-223-3/+110
|
* Revert commits for did_you_meanYuki Nishijima2021-12-213-110/+3
| | | | | | | This reverts commit 4560091b1c99ab33db0d653b9dd2d977fe4676d5. This reverts commit a6f76122a2395bd914daa0aa04fb5a6ce4e0c045. This reverts commit e59b18a6379c55f15ccda85c27d6997d44ef5293. This reverts commit 505dfae05d56d844ea150676edb87850a406d071.
* * gems/default_gems: Fix CI buildsYuki Nishijima2021-12-211-2/+2
|
* * gems/default_gems: Sync did_you_meanYuki Nishijima2021-12-213-3/+110
|
* Sync did_you_mean againYuki Nishijima2021-10-223-38/+21
|
* Revert "Sync did_you_mean"Yuki Nishijima2021-10-223-21/+38
| | | | This reverts commit e22d293e06966733e71a7fd9725eee06c03d0177.
* Sync did_you_meanYuki Nishijima2021-10-223-38/+21
|
* [ruby/did_you_mean] Disable error_highlight when testing did_you_meanYusuke Endoh2021-09-281-0/+15
| | | | | | Fixes #160 https://github.com/ruby/did_you_mean/commit/93df310873
* Fix typo in test namePeter Zhu2021-09-021-1/+1
|
* [ruby/did_you_mean] Prevent "warning: ambiguity between regexp and two ↵Yusuke Endoh2021-07-191-1/+1
| | | | | | | | | | | divisions" ``` test/did_you_mean/spell_checking/test_uncorrectable_name_check.rb:13: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator ``` http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20210630T033005Z.log.html.gz#test-all https://github.com/ruby/did_you_mean/commit/842ede4186
* Use assert_not_match "Did you mean?" for UncorrectableNameCheckTestYusuke Endoh2021-06-291-1/+1
| | | | | | | | | | ... instead of exact matching. I'm now creating a built-in gem that modifies Exception's error message, so the expectation value is changed. IMO, it is good to check that did_you_mean suggestion is NOT added in the uncorrectable case. https://github.com/ruby/did_you_mean/commit/ebe88ec4d2
* Revert "Fixed typo"Nobuyoshi Nakada2020-10-271-1/+1
| | | | | | This reverts commit 379a5ca539af0e954b1cdf63b9365ad208b9c7f3. This "typo" is intentional to test the transposition detection by did_you_mean.
* Fixed typoHiroshi SHIBATA2020-10-271-1/+1
|
* Sync did_you_meanYuki Nishijima2020-06-065-130/+147
|
* Revert "Sync did_you_mean"Nobuyoshi Nakada2020-05-123-38/+0
| | | | | This reverts commit 946dadd3f479198e87873a863d15c7660a8e2b56, which broke `TestGemRequire` and others.
* Sync did_you_meanYuki Nishijima2020-05-113-0/+38
|
* support multi-run test for test/did_you_mean/test_verbose_formatter.rbS-H-GAMELINKS2020-02-131-0/+1
|
* support multi-run test for ↵S-H-GAMELINKS2020-02-072-2/+4
| | | | test/did_you_mean/spell_checking/test_class_name_check.rb
* Port ↵Yuki Nishijima2019-12-231-0/+0
| | | | https://github.com/ruby/did_you_mean/commit/dd1dd86e6c3188c36224d5dd4389676e6653a727
* Fixed misspellingsNobuyoshi Nakada2019-12-201-1/+1
| | | | Fixed misspellings reported at [Bug #16437], for default gems.
* Fix Leaked file descriptor in test/did_you_meanKazuhiro NISHIYAMA2019-12-021-2/+2
| | | | | | | https://github.com/ruby/ruby/commit/de74d2c3b0005048a2c4433bde68b9be10c86f01/checks?check_suite_id=336910877#step:19:131 ``` Leaked file descriptor: NameErrorExtensionTest#test_correctable_error_objects_are_dumpable: 7 : #<File:test_name_error_extension.rb> ```
* Relax test requirements for DYM's verbose formatterYuki Nishijima2019-11-301-2/+1
|
* remove spaces to pass a test.Koichi Sasada2019-12-011-1/+1
| | | | | | 23d7f4c5e1ce164e78d77de694dccc0c41f6de3d breaks a test which expect to match error message. To avoid this failure, use #strip for expect and actual results.
* * remove trailing spaces. [ci skip]git2019-12-011-1/+1
|
* Promote did_you_mean to default gemKevin Deisz2019-11-3018-0/+1156
At the moment, there are some problems with regard to bundler + did_you_mean because of did_you_mean being a bundled gem. Since the vendored version of thor inside bundler and ruby itself explicitly requires did_you_mean, it can become difficult to load it when using Bundler.setup. See this issue: https://github.com/yuki24/did_you_mean/issues/117#issuecomment-482733159 for more details.