gather-community / gather

The App for Community
https://info.gather.coop
MIT License
30 stars 6 forks source link

Tests fail on fresh pull of repo when following README due to missing assets #1018

Open robotastronaut opened 6 months ago

robotastronaut commented 6 months ago

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.