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:
parent
89caf51d93
commit
2dcbc6ef96
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue