This project is archived and is in readonly mode.
Changes [0e57c70baf11a7f0211f78a5282f8ba26fbc17b4] by Pratik Naik in 2-3-stable doesn't pass the tests
Reported by PacoGuzman | March 31st, 2010 @ 02:02 PM
Hi,
The commit Don't try yo load record from db... is the same that the commit added to the master branch Don't try to load record from db... master but in 2-3-stable branch the test added doesn't pass..
Here the output:
1) Failure:
test_preloading_empty_polymorphic_parent(EagerAssociationTest)
[./test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries'
./test/cases/associations/eager_test.rb:837:in `test_preloading_empty_polymorphic_parent'
./test/cases/../../../activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
./test/cases/../../../activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
0 instead of 2 queries were executed.
expected but was
.
I don't know how the preload method works but maybe should be enough with this patch.
Comments and changes to this ticket
-
Repository March 31st, 2010 @ 02:15 PM
- State changed from new to resolved
(from [1f44fc90c68132a7ab3a86526cf867d13c5291af]) Dont use Rails 3 finder syntax in Rails 2.3.x test [#4303 state:resolved] http://github.com/rails/rails/commit/1f44fc90c68132a7ab3a86526cf867...
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
- 4303 Changes [0e57c70baf11a7f0211f78a5282f8ba26fbc17b4] by Pratik Naik in 2-3-stable doesn't pass the tests (from [1f44fc90c68132a7ab3a86526cf867d13c5291af]) Dont us...