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.

Changes [0e57c70baf11a7f0211f78a5282f8ba26fbc17b4] by Pratik Naik in 2-3-stable doesn't pass the tests

#4303

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.

Reported by PacoGuzman · March 31st, 2010 @ 02:02 PM

State: resolved
Milestone: none
Assigned to: Pratik Pratik
Importance: none