rails / jsbundling-rails

Bundle and transpile JavaScript in Rails with esbuild, rollup.js, bun, or Webpack.
MIT License
849 stars 147 forks source link

Fix for foreman existence test in rbenv installs. #113

Closed MrJoy closed 2 years ago

MrJoy commented 2 years ago

Because rbenv uses shims, the existence of foreman in any gemset will result in this test passing (indicating that the tool is available), whether it's in the current gemset or not.

This test, courtesy of @t27duck, ensures that foreman is actually operable in the current context.

This commit mirrors the identical commit in cssbundling-rails:

https://github.com/rails/cssbundling-rails/pull/91/commits/dff88451bfaa4385c3c70b4bca41a11682b173f6