[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
This commit is contained in:
parent
67d8a97d07
commit
ece332a44d
@ -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|
|
||||
|
Loading…
x
Reference in New Issue
Block a user