Skip to content

Commit b107e22

Browse files
authored
Merge pull request #2484 from Shopify/uk-fix-missing-specs-test
Fix missing gem specs test
2 parents 7f51c64 + 17aa29a commit b107e22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/tapioca/cli/gem_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,11 +767,15 @@ class Secret; end
767767

768768
it "must not generate RBIs for missing gem specs" do
769769
@project.write_gemfile!(<<~GEMFILE, append: true)
770-
platform :rbx do
770+
platform :jruby do
771771
gem "sidekiq", "=7.1.2"
772772
end
773773
GEMFILE
774774

775+
# We need to add the platform to the lock file so that bundler includes the gem
776+
# but it won't be materializable on the current platform (since we are not on JRuby)
777+
@project.exec("bundle lock --add-platform jruby")
778+
775779
@project.bundle_install!
776780

777781
result = @project.tapioca("gem --all")

0 commit comments

Comments
 (0)