On Mon, Dec 28, 2009 at 12:18 AM, Andrew Premdas <aprem...@gmail.com> wrote: > 2009/12/22 Rick DeNatale <rick.denat...@gmail.com>
> Please explain why - thanks. Because, classes and class variables aren't guaranteed to be persistent. In development mode, classes can get reloaded, which wipes out class (and class instance) variables. In most deployment scenarios requests from a single user might be handled by different processes, each with it's own state. State that needs to be around between requests needs to be somewhere persistent like the DB, or the session. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users