From cdb7d699d0641e8f081d590d06d07887ac09961f Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Tue, 21 Dec 2021 22:09:33 +0900 Subject: Revert commits for did_you_mean This reverts commit 4560091b1c99ab33db0d653b9dd2d977fe4676d5. This reverts commit a6f76122a2395bd914daa0aa04fb5a6ce4e0c045. This reverts commit e59b18a6379c55f15ccda85c27d6997d44ef5293. This reverts commit 505dfae05d56d844ea150676edb87850a406d071. --- test/did_you_mean/core_ext/test_name_error_extension.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/did_you_mean/core_ext') 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 -- cgit v1.2.3