One of my model code methods is throwing an error when run using script/console in test but not in development. I'd be grateful if someone can tell me the differences between the two, beyond the database that they connect to. Thanks.
on 2009-05-09 08:37
on 2009-05-09 11:49
I think all the differences are the differences between the settings in test.rb and development.rb in config/environment/ plus those in database.yml. 2009/5/9 Lee <firstname.lastname@example.org>
on 2009-05-09 19:43
A stack trace for the error will help out quite a bit. The most notable difference between the two environments is that the test environment has cache_classes = true, which triggers preloading of the application classes on startup. But again, without a stack trace, it's hard to tell. --Matt J.