Skip to content

Commit

Permalink
Try to use irb instead of rubygems for completion test
Browse files Browse the repository at this point in the history
I'm not sure why OpenBSD suggest `rubygems_plugin` file for this.

https://rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20240126T013005Z.fail.html.gz

It seems environmental issue, not irb.
  • Loading branch information
hsbt committed Jan 26, 2024
1 parent bbabf81 commit 343b08f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/irb/test_completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def object.to_s; raise; end

def test_complete_require_library_name_first
# Test that library name is completed first with subdirectories
candidates = IRB::RegexpCompletor.new.completion_candidates("require ", "'rubygems", "", bind: binding)
assert_equal "'rubygems", candidates.first
candidates = IRB::RegexpCompletor.new.completion_candidates("require ", "'irb", "", bind: binding)
assert_equal "'irb", candidates.first
end

def test_complete_require_relative
Expand Down

0 comments on commit 343b08f

Please sign in to comment.