diff --git a/Gemfile.lock b/Gemfile.lock index ed566b56..c43d6eb2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -29,7 +29,7 @@ GEM pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.21.2) + json (3.0.0) language_server-protocol (3.17.0.6) lint_roller (1.1.0) logger (1.7.0) @@ -43,7 +43,7 @@ GEM minitest (>= 5.0, < 7) ruby-progressbar netrc (0.11.0) - parallel (2.1.0) + parallel (2.2.0) parser (3.3.12.0) ast (~> 2.4.1) racc @@ -94,7 +94,7 @@ GEM rubocop-shopify (3.0.2) lint_roller rubocop (~> 1.72, >= 1.72.1) - rubocop-sorbet (0.15.0) + rubocop-sorbet (0.16.0) lint_roller rbi (~> 0.4) rubocop (>= 1.75.2) @@ -103,14 +103,14 @@ GEM rubydex (0.2.6-arm64-darwin) rubydex (0.2.6-x86_64-darwin) rubydex (0.2.6-x86_64-linux) - sorbet (0.6.13454) - sorbet-static (= 0.6.13454) - sorbet-runtime (0.6.13454) - sorbet-static (0.6.13454-universal-darwin) - sorbet-static (0.6.13454-x86_64-linux) - sorbet-static-and-runtime (0.6.13454) - sorbet (= 0.6.13454) - sorbet-runtime (= 0.6.13454) + sorbet (0.6.13486) + sorbet-static (= 0.6.13486) + sorbet-runtime (0.6.13486) + sorbet-static (0.6.13486-universal-darwin) + sorbet-static (0.6.13486-x86_64-linux) + sorbet-static-and-runtime (0.6.13486) + sorbet (= 0.6.13486) + sorbet-runtime (= 0.6.13486) stringio (3.2.0) tapioca (0.19.2) benchmark diff --git a/test/spoom/cli/srb/lsp_test.rb b/test/spoom/cli/srb/lsp_test.rb index 2c1baa6d..53a4b824 100644 --- a/test/spoom/cli/srb/lsp_test.rb +++ b/test/spoom/cli/srb/lsp_test.rb @@ -35,7 +35,7 @@ def foo(a) Bar.new.bar RB result = @project.spoom("srb lsp --no-color find Foo") - assert_equal(<<~MSG, result.err) + expected_lines = <<~MSG.lines Error: Sorbet returned typechecking errors for `/errors.rb` 8:11-8:11: Not enough arguments provided for method `Foo#foo`. Expected: `1`, got: `0` (7004) 3:2-3:5: Method `sig` does not exist on `T.class_of(Foo)` (fix available) (7003) @@ -43,6 +43,9 @@ def foo(a) 5:2-5:5: Expected `String` but found `NilClass` for method result type (7005) 9:0-9:3: Unable to resolve constant `Bar` (fix available) (5002) MSG + actual_lines = result.err&.lines || [] + assert_equal(expected_lines.first, actual_lines.first) + assert_equal(expected_lines.drop(1).sort, actual_lines.drop(1).sort) end # Defs