On 22/07/06, Caio Chassot <[EMAIL PROTECTED]> wrote:

On 2006-07-22, at 13:02 , James Adam wrote:

> However, because of the way that Rake::TestTask works (loading a new
> Ruby interpreter which churns through the test cases), the Rails
> environment is never actually made available to any plugins.

Really? I think my plugins' tests need the environment, and run fine.

If you require test_helper within your tests, environment will be
loaded and tests will run fine.  James' point is that as well as
test_helper, the rake task test:plugins also loads the environment but
in a way in which it isn't actually made available to the tests.  This
is unnecessary overhead.

Tom
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to