ruby-changes:65645
From: Nobuyoshi <ko1@a...>
Date: Wed, 24 Mar 2021 16:10:47 +0900 (JST)
Subject: [ruby-changes:65645] 2dcbc6ef96 (master): [ruby/irb] fix completion test when out-of-place build
https://git.ruby-lang.org/ruby.git/commit/?id=2dcbc6ef96 From 2dcbc6ef966c3bed89a57208812f9b5f6c8fd5de Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 24 Mar 2021 16:10:27 +0900 Subject: [ruby/irb] fix completion test when out-of-place build --- test/irb/test_completion.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index de043c7..04ac6db 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -64,7 +64,9 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_completion.rb#L64 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/