1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] fix completion test when out-of-place build

This commit is contained in:
Nobuyoshi Nakada 2021-03-24 16:10:27 +09:00
parent 89caf51d93
commit 2dcbc6ef96
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -64,7 +64,9 @@ module TestIRB
end
def test_complete_require_relative
candidates = IRB::InputCompletor::CompletionProc.("'lib/irb", "require_relative ", "")
candidates = Dir.chdir(__dir__ + "/../..") do
IRB::InputCompletor::CompletionProc.("'lib/irb", "require_relative ", "")
end
%w['lib/irb/init 'lib/irb/ruby-lex].each do |word|
assert_include candidates, word
end