diff options
author | Yuki Nishijima <yk.nishijima@gmail.com> | 2021-10-22 20:56:26 -0400 |
---|---|---|
committer | Yuki Nishijima <yk.nishijima@gmail.com> | 2021-10-22 20:56:26 -0400 |
commit | 22249bbb371d794c0330c1a4512f2581c1040297 (patch) | |
tree | 7d22c2dfc085e9dd3f478f9cd3ca312be345a308 /test/did_you_mean/spell_checking | |
parent | e22d293e06966733e71a7fd9725eee06c03d0177 (diff) |
Revert "Sync did_you_mean"
This reverts commit e22d293e06966733e71a7fd9725eee06c03d0177.
Diffstat (limited to 'test/did_you_mean/spell_checking')
-rw-r--r-- | test/did_you_mean/spell_checking/test_pattern_key_name_check.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/did_you_mean/spell_checking/test_pattern_key_name_check.rb b/test/did_you_mean/spell_checking/test_pattern_key_name_check.rb deleted file mode 100644 index 2b0752a56a..0000000000 --- a/test/did_you_mean/spell_checking/test_pattern_key_name_check.rb +++ /dev/null @@ -1,20 +0,0 @@ -require_relative '../helper' - -return if !defined?(::NoMatchingPatternKeyError) - -class PatternKeyNameCheckTest < Test::Unit::TestCase - include DidYouMean::TestHelper - - def test_corrects_hash_key_name_with_single_pattern_match - error = assert_raise(NoMatchingPatternKeyError) do - eval(<<~RUBY, binding, __FILE__, __LINE__) - hash = {foo: 1, bar: 2, baz: 3} - hash => {fooo:} - fooo = 1 # suppress "unused variable: fooo" warning - RUBY - end - - assert_correction ":foo", error.corrections - assert_match "Did you mean? :foo", error.to_s - end -end |