Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Suggest that users run with RAILS_ENV=test #221

Open
booch opened this issue Oct 20, 2017 · 2 comments
Open

Suggest that users run with RAILS_ENV=test #221

booch opened this issue Oct 20, 2017 · 2 comments

Comments

@booch
Copy link

booch commented Oct 20, 2017

It would be nice to suggest that users run:

RAILS_ENV=test bundle exec rake spec:javascript

instead of

bundle exec rake spec:javascript

The later ends up loading Rails twice (due to the fact that if RAILS_ENV is not set, the rake task reruns itself with RAILS_ENV=test prepended).

@searls
Copy link
Member

searls commented Oct 20, 2017

Sure. At least until we can sort out how to resolve the underlying issue of defining a rake task at all under Rails 4+ without loading appliaction

@booch
Copy link
Author

booch commented Oct 20, 2017

LOL, yeah. I'm not sure there's actually a solution to that. :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants