Skip to content

Commit

Permalink
Merge pull request #195 from ruby/support-bundled-gems
Browse files Browse the repository at this point in the history
Switch to use ostruct to open3 with suggestion test
  • Loading branch information
hsbt authored Jan 10, 2025
2 parents f132bcf + 792f8c1 commit 50e6199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/spell_checking/test_require_path_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50e6199

Please sign in to comment.