Skip to content

Commit

Permalink
Fix for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Mar 8, 2024
1 parent 2ebb726 commit a4b498a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/ruby_lsp_rails/runner_client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a4b498a

Please sign in to comment.