[rspec-users] Change cache_classes on the fly?

2009-05-20 Thread tatyree
Strange request, I know...also seems pretty unlikely that it will work, but: Any thoughts on how I might change the setting on the fly (or stub it)? I'm stopping certain classes loading in production, and I'd like to be able to test the behavior without having to manually change the setting in te

Re: [rspec-users] Strange message expectation behaviour with Time.now in a find condition

2009-01-30 Thread tatyree
Thanks for that everyone! Henceforth I shall always endeavour to stop the flow of time in all of my specs! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Strange message expectation behaviour with Time.now in a find condition

2009-01-29 Thread tatyree
Even if this is a bug, it's a pretty obscure one. It was frustrating the hell out of me until I found a workaround, so I thought I'd just post the details: Given a find like this: def self.find_old User.all(:conditions => ['updated_at <= ?',Time.now - 1.day) ... Trying to set a message expe