Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Fix models load order in ActiveRecord's tests

#2550

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)

Reported by Emilio Tagua · April 23rd, 2009 @ 02:31 PM

State: committed
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to committed

    (from [a841cd2503e26d4af908b2ff49592973eabcac46]) Fix models load order to be able to run unit tests.

    [#2550 Fix models load order in ActiveRecord's tests state:committed]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    April 24th, 2009 @ 12:02 AM

  2. Repository