This project is archived and is in readonly mode.

#2550 ✓committed
Emilio Tagua

Fix models load order in ActiveRecord's tests

Reported by Emilio Tagua | April 23rd, 2009 @ 02:31 PM | in 2.x

Test models are not being loaded properly on ActiveRecord's tests.

The problem:

rake test_mysql works

but: rake test_mysql TEST=test/cases/base_test.rb won't

The attached patch fix this for the tests where post model was loaded after author model causing:

uninitialized constant Author::Post (NameError)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages