summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-19 21:34:46 -0800
committergit <svn-admin@ruby-lang.org>2022-11-20 05:34:51 +0000
commit67034ac7e2a81e1fce0818bec8014f6a35a1353c (patch)
treebadb386deeea76bc91ddbaaad63b5342235f9680 /test
parent8512b97d27a617bc74d6ec0a7d3fcc1cea43194f (diff)
[ruby/irb] Deal with inconsistency with ruby/ruby
https://github.com/ruby/irb/commit/41d5012849
Diffstat (limited to 'test')
-rw-r--r--test/irb/helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/irb/helper.rb b/test/irb/helper.rb
index 9d41a98237..a51e9a84b9 100644
--- a/test/irb/helper.rb
+++ b/test/irb/helper.rb
@@ -1,4 +1,8 @@
require "test/unit"
+begin
+ require_relative "../lib/helper"
+rescue LoadError # ruby/ruby defines helpers differently
+end
module IRB
class InputMethod; end