Using spin to test a Rails Engine
uhlenbrock opened this issue · 3 comments
uhlenbrock commented
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.
jstorimer commented
I'm working on a new release that will allow custom preloading behaviour, perfect for your needs.
uhlenbrock commented
Great, thanks for the update!
uhlenbrock commented
I was able to get this working by passing the following argument --preload test/dummy/config/application.rb