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 test.rb. Thanks, Todd
On Wed, May 20, 2009 at 6:01 AM, tatyree <tatyree at googlemail.com> wrote:> 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 test.rb.Have you looked at the rails code that uses it? That''s what you''d need to look at to know what to stub.> > Thanks, > Todd
tatyree wrote:> 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 test.rb. > > Thanks, > Todd > >Try changing the Rails.configuration.cache_classes setting at the appropriate times... -Ben