Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion test/spoom/cli/srb/lsp_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,17 @@ 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)
3:8-3:14: Method `params` does not exist on `T.class_of(Foo)` (7003)
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
Expand Down
Loading