After following the initial setup instructions, running tests with bundle exec rspec fails because the frontend assets are not built. With rails 7, we got things like jsbundling-rails and the bin/dev script, which uses foreman. Long story short, this setup only compiles our assets when RAILS_ENV is set to development and not when it is set to test. We either need to update the README to include a bundle exec rake test:prepare step or update rails_helper.rb to compile the assets before any tests are run.
After following the initial setup instructions, running tests with
bundle exec rspec
fails because the frontend assets are not built. With rails 7, we got things likejsbundling-rails
and thebin/dev
script, which usesforeman
. Long story short, this setup only compiles our assets whenRAILS_ENV
is set todevelopment
and not when it is set totest
. We either need to update the README to include abundle exec rake test:prepare
step or updaterails_helper.rb
to compile the assets before any tests are run.