Skip to content

Auto-compile assets when running with rspec #2675

Open
@mockdeep

Description

@mockdeep

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions