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.
Colin Law
2009-May-09 07:48 UTC
Re: Differences between console [development] and console test?
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 <Lee.Longmore-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>> > 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. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Jones
2009-May-09 15:43 UTC
Re: Differences between console [development] and console test?
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 Jones On May 8, 11:36 pm, Lee <Lee.Longm...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> 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.