diff options
author | Sorah Fukumori <[email protected]> | 2024-12-26 03:50:06 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-12-25 19:46:34 +0000 |
commit | ece332a44df077d26c735dbdbf050dd471c4ffdd (patch) | |
tree | 4cd8331870ea433994affba8085b88d3254f136d /test/reline | |
parent | 67d8a97d07ecc0d626951cf702cd6aab814ee489 (diff) |
[ruby/reline] test_tty_ambiguous_width: Use Reline.test_rubybin
Same as https://github.com/ruby/reline/pull/510, 'ruby' command is not
always available so don't rely on that specific name.
https://github.com/ruby/reline/commit/f60199fed7
Diffstat (limited to 'test/reline')
-rw-r--r-- | test/reline/test_reline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/reline/test_reline.rb b/test/reline/test_reline.rb index 0a4f38986b..691ed9ffda 100644 --- a/test/reline/test_reline.rb +++ b/test/reline/test_reline.rb @@ -446,7 +446,7 @@ class Reline::Test < Reline::TestCase RUBY ruby_file.close lib = File.expand_path('../../lib', __dir__) - cmd = [{ 'TERM' => 'xterm' }, 'ruby', '-I', lib, ruby_file.to_path] + cmd = [{ 'TERM' => 'xterm' }, Reline.test_rubybin, '-I', lib, ruby_file.to_path] # Calculate ambiguous width from cursor position [1, 2].each do |ambiguous_width| |