Skip to content
Merged
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
6 changes: 5 additions & 1 deletion spec/tapioca/cli/gem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,15 @@ class Secret; end

it "must not generate RBIs for missing gem specs" do
@project.write_gemfile!(<<~GEMFILE, append: true)
platform :rbx do
platform :jruby do
gem "sidekiq", "=7.1.2"
end
GEMFILE

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

@project.bundle_install!

result = @project.tapioca("gem --all")
Expand Down
Loading