Skip to content

Commit

Permalink
Fix "uninitialized constant #<Class:Bundle>::T" in tests
Browse files Browse the repository at this point in the history
- Add `sorbet-runtime` to the `test` Gemfile group like we do in `brew services`.
  • Loading branch information
issyl0 committed Jan 30, 2025
1 parent 05de4d7 commit 93ff4fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ group :test do
gem "rspec"
gem "simplecov", require: false
gem "simplecov-cobertura", require: false
gem "sorbet-runtime"
end
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ GEM
simplecov (~> 0.19)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sorbet-runtime (0.5.11758)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uri (1.0.2)
Expand All @@ -62,6 +63,7 @@ DEPENDENCIES
rspec
simplecov
simplecov-cobertura
sorbet-runtime

RUBY VERSION
ruby 3.3.7p123
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def linux?
end

require "bundler"
require "sorbet-runtime"
require "rspec/support/object_formatter"

RSpec.configure do |config|
Expand Down

0 comments on commit 93ff4fb

Please sign in to comment.