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 HasManyThroughAssociationsTest tests

#733

At the moment HasManyThroughAssociationsTest are failing, 1 failure and 1 error, when running just that test file, NOT when running all tests.

The failure is in method "test_associate_existing":

assert_queries(1) do
  posts(:thinking).people << people(:david)
end

Generates an extra: SHOW FIELDS FROM `posts`. That is not generated when running all tests.

The error is that comment model is used in the test but it isn't included, i add both, the model and the fixture.

Reported by Emilio Tagua · July 31st, 2008 @ 02:59 PM

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

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [fb5cc19707582fa61ca3e426697cc2b00e9e5ffa]) Fix HasManyThroughAssociationsTest tests. [#733 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    July 31st, 2008 @ 05:03 PM