sporkrb / spork-testunit

Test::Unit support for Spork
67 stars 27 forks source link

Why do I have to manually load some models? #14

Closed Dagnan closed 13 years ago

Dagnan commented 13 years ago

I have a model in app/models/API/foursquare.rb.

If I do not put

require File.dirname(__FILE__) + '/../app/models/API/foursquare'

in

Spork.prefork {}

the model is not loaded with the application.

Also, some models are not automatically reloaded I do not understand why. Am I missing something?

Thanks :)

timcharper commented 13 years ago

Maybe you'll find your answer in the Spork README file (diagnostic mode section), and the following wiki page?

https://github.com/timcharper/spork

https://github.com/timcharper/spork/wiki/Spork.trap_method-Jujutsu

Dagnan commented 13 years ago

Thank you Tim.