summaryrefslogtreecommitdiff
path: root/test/did_you_mean/spell_checking/test_require_path_check.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-06-07 15:24:48 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-06-07 15:24:48 +0900
commit11b9dd8ccb26a091b99230640494540ad0cc4e48 (patch)
treefb80532651cffb2d1609f1a237a1fa72b83bdf45 /test/did_you_mean/spell_checking/test_require_path_check.rb
parentb9f030954a8a1572032f3548b39c5b8ac35792ce (diff)
Manually merged https://github.com/ruby/did_you_mean/pull/177
Diffstat (limited to 'test/did_you_mean/spell_checking/test_require_path_check.rb')
-rw-r--r--test/did_you_mean/spell_checking/test_require_path_check.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/did_you_mean/spell_checking/test_require_path_check.rb b/test/did_you_mean/spell_checking/test_require_path_check.rb
index f67fab0568..d6c06e9999 100644
--- a/test/did_you_mean/spell_checking/test_require_path_check.rb
+++ b/test/did_you_mean/spell_checking/test_require_path_check.rb
@@ -11,7 +11,7 @@ class RequirePathCheckTest < Test::Unit::TestCase
end
assert_correction 'ostruct', error.corrections
- assert_match "Did you mean? ostruct", error.to_s
+ assert_match "Did you mean? ostruct", get_message(error)
end
def test_load_error_from_require_for_nested_files_has_suggestions
@@ -20,13 +20,13 @@ class RequirePathCheckTest < Test::Unit::TestCase
end
assert_correction 'net/http', error.corrections
- assert_match "Did you mean? net/http", error.to_s
+ assert_match "Did you mean? net/http", get_message(error)
error = assert_raise LoadError do
require 'net-http'
end
assert_correction ['net/http', 'net/https'], error.corrections
- assert_match "Did you mean? net/http", error.to_s
+ assert_match "Did you mean? net/http", get_message(error)
end
end