Skip to content

Commit f4bcdf4

Browse files
committed
Change the way the IRB is invoked as an external process
1 parent 1ef3d3b commit f4bcdf4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/irb/test_history.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ def launch_irb_with_irbrc_and_irb_history(irbrc, irb_history)
117117

118118
with_temp_stdio do |stdin, stdout|
119119
replace_stdio(stdin.path, stdout.path) do
120-
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
121-
cmds = %W[ruby] + bundle_exec + %W[-W0 -rirb -e 'IRB.start(__FILE__)']
120+
cmds = %W[ruby -Ilib:test -W0 -rirb -e 'IRB.start(__FILE__)']
122121
yield(stdin, stdout)
123122
stdin.close
124123
system(cmds.join(' '))

0 commit comments

Comments
 (0)