This project is archived and is in readonly mode.
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
-
Repository April 24th, 2009 @ 12:02 AM
- State changed from new to committed
(from [a841cd2503e26d4af908b2ff49592973eabcac46]) Fix models load order to be able to run unit tests.
[#2550 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
-
Repository August 9th, 2009 @ 05:13 AM
(from [6843fb9265c6eb48f00aceb181e6801a1c072478]) Fix models load order to be able to run unit tests.
[#2550 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/6843fb9265c6eb48f00aceb181e680...
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
Tags
Referenced by
- 2550 Fix models load order in ActiveRecord's tests [#2550 state:committed]
- 2550 Fix models load order in ActiveRecord's tests [#2550 state:committed]