diff options
author | Yuki Nishijima <yk.nishijima@gmail.com> | 2021-12-21 22:09:33 +0900 |
---|---|---|
committer | Yuki Nishijima <yk.nishijima@gmail.com> | 2021-12-21 22:10:03 +0900 |
commit | cdb7d699d0641e8f081d590d06d07887ac09961f (patch) | |
tree | 0c3db45b8511c5d0815e0ddd5d549fc720fccd50 /test/did_you_mean/core_ext | |
parent | 4560091b1c99ab33db0d653b9dd2d977fe4676d5 (diff) |
Revert commits for did_you_mean
This reverts commit 4560091b1c99ab33db0d653b9dd2d977fe4676d5.
This reverts commit a6f76122a2395bd914daa0aa04fb5a6ce4e0c045.
This reverts commit e59b18a6379c55f15ccda85c27d6997d44ef5293.
This reverts commit 505dfae05d56d844ea150676edb87850a406d071.
Diffstat (limited to 'test/did_you_mean/core_ext')
-rw-r--r-- | test/did_you_mean/core_ext/test_name_error_extension.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/did_you_mean/core_ext/test_name_error_extension.rb b/test/did_you_mean/core_ext/test_name_error_extension.rb index 91871cda9a..9dc08dbde3 100644 --- a/test/did_you_mean/core_ext/test_name_error_extension.rb +++ b/test/did_you_mean/core_ext/test_name_error_extension.rb @@ -1,7 +1,7 @@ require_relative '../helper' class NameErrorExtensionTest < Test::Unit::TestCase - SPELL_CHECKERS = DidYouMean.spell_checkers + SPELL_CHECKERS = DidYouMean::SPELL_CHECKERS class TestSpellChecker def initialize(*); end @@ -9,14 +9,13 @@ class NameErrorExtensionTest < Test::Unit::TestCase end def setup - @original_spell_checker = DidYouMean.spell_checkers['NameError'] - DidYouMean.correct_error(NameError, TestSpellChecker) + @org, SPELL_CHECKERS['NameError'] = SPELL_CHECKERS['NameError'], TestSpellChecker @error = assert_raise(NameError){ doesnt_exist } end def teardown - DidYouMean.correct_error(NameError, @original_spell_checker) + SPELL_CHECKERS['NameError'] = @org end def test_message |