Skip to content

Commit db9fbd2

Browse files
committed
Fix failing test for Ruby 3.1
1 parent fd840a6 commit db9fbd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/minitest_test_runner_test.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module RubyLsp
77
class MinitestTestRunnerTest < Minitest::Test
88
def test_minitest_output
99
plugin_path = "lib/ruby_lsp/ruby_lsp_reporter_plugin.rb"
10-
env = { "RUBYOPT" => "-r./#{plugin_path}" }
10+
# In Ruby 3.1, the require fails unless Bundler is set up.
11+
env = { "RUBYOPT" => "-rbundler/require -r./#{plugin_path}" }
1112
_stdin, stdout, stderr, wait_thr = T.unsafe(Open3).popen3(
1213
env,
1314
"bundle",

0 commit comments

Comments
 (0)