From: Xavier Noria <f...@hashref.com>
Date: Tue, 13 Nov 2012 09:00:33 +0100
Local: Tues, Nov 13 2012 3:00 am
Subject: Re: [Rails-core] Loading/unloading classes/files in tests
I believe you should be able to test that defining the constant in the test and in the file (untested):
# c.rb
# my_test.rb
Something like that.
Sent from my iPad
On 12 Nov 2012, at 21:30, Uriel Katz <uriel.k...@gmail.com> wrote:
> Hi,
> I am trying to fix #8167 and as part of that fix I need to write tests to check if my code auto loads classes when reading entries from cache.
> now I want to read from the cache but without having SomeClass loaded (remember I need to check that when loading from cache SomeClass is loaded).
> I already tried the following options:
> I tried looking into autoload tests but it didn't help.
> Thanks,
> $LOADED_FEATURES
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||