Skip to content

Support bundler 4 & fix tests - #138

Merged
jcoyne merged 5 commits into
cbeer:masterfrom
pulibrary:support_bundler_4
Nov 17, 2026
Merged

jcoyne merged 5 commits into
cbeer:masterfrom
pulibrary:support_bundler_4

Conversation

@tpendragon

Copy link
Copy Markdown
Collaborator

Bundler 4 added this BUNDLE_LOCKFILE env that we have to get rid of now, like we used to get rid of BUNDLE_GEMFILE. There's some references in the release notes: https://blog.rubygems.org/2025/12/03/4.0.0-released.html. The new test just makes sure that the rails generator succeeded, by testing for the importmap file.

I also spent some work getting tests to pass, hopefully it works.

Bundler 4 added this BUNDLE_LOCKFILE env
Fixes some specs that were expecting that generator to exist, just a
test setup thing.
This just makes sure the engine was generated for every test, these
failed on me sometimes with some seeds otherwise.
Rails 8.1's generator adds puma, so this gets rid of the duplicate so it
doesn't error.
end
end

it "should run the rails app generator's bundled installers when the engine_cart:generate task is invoked" do

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should

Do or do not. There is no try.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just following the syntax that's already in the spec, Yoda, but happy to change it if you'd like 😀

@jcoyne
jcoyne merged commit d6cbd5d into cbeer:master Nov 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants