Is your feature request related to a problem? Please describe.
When using jsbundling-rails, assets are not precompiled automatically when running tests via the rspec command line:
$ rspec spec/path/to/my_spec.rb
But they are when run via the rake task:
$ SPEC=spec/path/to/my_spec.rb rake spec
Describe the solution you'd like
I would love it if behavior across these was consistent. I prefer to use the rspec command since it allows me to easily pass options to rspec, such as --fail-fast or specific filters.
Describe alternatives you've considered
For now we're considering adding yarn build to our rails_helper.rb so that it builds at the beginning of each test run.
Is your feature request related to a problem? Please describe.
When using
jsbundling-rails, assets are not precompiled automatically when running tests via therspeccommand line:But they are when run via the rake task:
Describe the solution you'd like
I would love it if behavior across these was consistent. I prefer to use the
rspeccommand since it allows me to easily pass options torspec, such as--fail-fastor specific filters.Describe alternatives you've considered
For now we're considering adding
yarn buildto ourrails_helper.rbso that it builds at the beginning of each test run.