743kfg
Last Updated: February 25, 2016
·
3.517K
· stas
39639fde05c65fae440b775989e55006

Rails Engine: rake task and generator to DRY `spec/dummy`

When working with Rails Engine, you will need a dummy app in order to test your code. Following the DRY principle, ideally we will generate the dummy app before running test suite to make sure our environment is clean.

Since Rails will provide support for automating such a task only in v.4.0, here's one way you can achieve the same result.

https://gist.github.com/4131823

Say Thanks
Respond

1 Response
Add your response

7797
39639fde05c65fae440b775989e55006

Later update:
Use gemified task as a gem with https://github.com/Courseware/rails-dummy

over 1 year ago ·