743kfg
Last Updated: February 25, 2016
·
3.647K
· stas

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

1 Response
Add your response

7797

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

over 1 year ago ·