We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d991da commit b403c5bCopy full SHA for b403c5b
test/support/utils.rb
@@ -33,11 +33,14 @@ def debug_print msg
33
print msg if DEBUG_MODE
34
end
35
36
+ RUBY = RbConfig.ruby
37
+
38
def create_pseudo_terminal
- ENV['RUBYOPT'] = '-I ./lib'
39
+ lib = "#{__dir__}/../../lib"
40
+ ENV['RUBYOPT'] = "-I #{lib}"
41
ENV['RUBY_DEBUG_USE_COLORIZE'] = "false"
42
- PTY.spawn("ruby -r debug/run #{temp_file_path}") do |read, write, pid|
43
+ PTY.spawn("#{RUBY} -r debug/run #{temp_file_path}") do |read, write, pid|
44
quit = false
45
result = nil
46
0 commit comments