jstorimer / spin

Spin speeds up your Rails testing workflow by preloading your Rails environment.

Home Page:http://jstorimer.github.com/spin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using spin to test a Rails Engine

uhlenbrock opened this issue · comments

Best practice for testing Rails Engines seems to be placing a dummy app inside the test directory. I would love to use Spin to speed up my Engine tests, but the path to application.rb is hard-coded in the serve method. A CLI variable to override that value should allow me to use spin in this configuration.

I'm working on a new release that will allow custom preloading behaviour, perfect for your needs.

Great, thanks for the update!

I was able to get this working by passing the following argument --preload test/dummy/config/application.rb