diff --git a/test/ruby_lsp_rails/runner_client_test.rb b/test/ruby_lsp_rails/runner_client_test.rb index 6d374ea6..ac582b02 100644 --- a/test/ruby_lsp_rails/runner_client_test.rb +++ b/test/ruby_lsp_rails/runner_client_test.rb @@ -60,9 +60,10 @@ class RunnerClientTest < ActiveSupport::TestCase end File.chmod(0o755, "bin/rails") + # The error message is slightly different on Ubuntu, so we need to allow for that assert_output( "", - %r{Ruby LSP Rails failed to initialize server: bin/rails: line 1: foo:( command)? not found}, + %r{Ruby LSP Rails failed to initialize server: bin/rails: (line )?1: foo:( command)? not found}, ) do client = RunnerClient.create_client