diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index 63f64970..cf5fb391 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v2.0 + uses: dependabot/fetch-metadata@v2 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Enable auto-merge for Dependabot PRs diff --git a/Gemfile.lock b/Gemfile.lock index 17216edd..dcee3e96 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -21,7 +21,7 @@ GEM irb (1.12.0) rdoc reline (>= 0.4.2) - json (2.7.1) + json (2.7.2) language_server-protocol (3.17.0.3) minitest (5.22.3) minitest-reporters (1.6.1) @@ -40,7 +40,7 @@ GEM racc (1.7.3) rainbow (3.1.1) rake (13.2.1) - rbi (0.1.9) + rbi (0.1.10) prism (>= 0.18.0, < 0.25) sorbet-runtime (>= 0.5.9204) rdoc (6.6.3.1) @@ -49,7 +49,7 @@ GEM reline (0.5.0) io-console (~> 0.5) rexml (3.2.6) - rubocop (1.62.1) + rubocop (1.63.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -64,19 +64,19 @@ GEM parser (>= 3.3.0.4) rubocop-shopify (2.15.1) rubocop (~> 1.51) - rubocop-sorbet (0.8.0) + rubocop-sorbet (0.8.1) rubocop (>= 0.90.0) ruby-progressbar (1.13.0) - sorbet (0.5.11332) - sorbet-static (= 0.5.11332) - sorbet-runtime (0.5.11332) - sorbet-static (0.5.11332-universal-darwin) - sorbet-static (0.5.11332-x86_64-linux) - sorbet-static-and-runtime (0.5.11332) - sorbet (= 0.5.11332) - sorbet-runtime (= 0.5.11332) + sorbet (0.5.11346) + sorbet-static (= 0.5.11346) + sorbet-runtime (0.5.11346) + sorbet-static (0.5.11346-universal-darwin) + sorbet-static (0.5.11346-x86_64-linux) + sorbet-static-and-runtime (0.5.11346) + sorbet (= 0.5.11346) + sorbet-runtime (= 0.5.11346) stringio (3.1.0) - tapioca (0.13.1) + tapioca (0.13.3) bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) diff --git a/test/spoom/cli/deadcode_test.rb b/test/spoom/cli/deadcode_test.rb index 27025c06..c2ec6fd3 100644 --- a/test/spoom/cli/deadcode_test.rb +++ b/test/spoom/cli/deadcode_test.rb @@ -6,6 +6,10 @@ module Spoom module Cli class DeadcodeTest < TestWithProject + def setup + @project.bundle_install! + end + def test_deadcode_without_deadcode @project.write!("lib/foo.rb", <<~RUBY) def foo; end diff --git a/test/spoom/context/sorbet_test.rb b/test/spoom/context/sorbet_test.rb index 5b58a027..1489dc15 100644 --- a/test/spoom/context/sorbet_test.rb +++ b/test/spoom/context/sorbet_test.rb @@ -44,7 +44,7 @@ def test_context_run_srb_from_bundle context.write_sorbet_config!(".") res = context.srb("tc") - assert_equal(<<~ERR, res.err) + assert_includes(res.err, <<~ERR) a.rb:3: Method `foo` does not exist on `T.class_of()` https://srb.help/7003 3 |foo(42) ^^^