diff options
author | aycabta <aycabta@gmail.com> | 2020-08-18 12:38:07 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-08-18 20:06:52 +0900 |
commit | 01b6c520f5ee48aad7a0f3dfd690616d179e9e1f (patch) | |
tree | 28e6a04f6233ca450d9af97b90cfc6db5dfe0086 /test/irb | |
parent | 172d44e8094103f23ac030cdd5fa960d0632f03f (diff) | |
download | ruby-01b6c520f5ee48aad7a0f3dfd690616d179e9e1f.tar.gz |
[ruby/irb] Change the way the IRB is invoked as an external process
https://github.com/ruby/irb/commit/f4bcdf4375
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_history.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb index 23242fa26f..61bd41c9bd 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -117,8 +117,7 @@ module TestIRB with_temp_stdio do |stdin, stdout| replace_stdio(stdin.path, stdout.path) do - bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : [] - cmds = %W[ruby] + bundle_exec + %W[-W0 -rirb -e 'IRB.start(__FILE__)'] + cmds = %W[ruby -Ilib:test -W0 -rirb -e 'IRB.start(__FILE__)'] yield(stdin, stdout) stdin.close system(cmds.join(' ')) |