Switch to use ostruct to open3 with suggestion test
This commit is contained in:
parent
9f5ca6332b
commit
599a0601f6
Notes:
git
2025-01-08 08:12:42 +00:00
@ -7,11 +7,11 @@ class RequirePathCheckTest < Test::Unit::TestCase
|
||||
|
||||
def test_load_error_from_require_has_suggestions
|
||||
error = assert_raise LoadError do
|
||||
require 'open_struct'
|
||||
require 'open'
|
||||
end
|
||||
|
||||
assert_correction 'ostruct', error.corrections
|
||||
assert_match "Did you mean? ostruct", get_message(error)
|
||||
assert_correction 'open3', error.corrections
|
||||
assert_match "Did you mean? open3", get_message(error)
|
||||
end
|
||||
|
||||
def test_load_error_from_require_for_nested_files_has_suggestions
|
||||
|
Loading…
x
Reference in New Issue
Block a user