This project is archived and is in readonly mode.

#733 ✓resolved
Emilio Tagua

Fix HasManyThroughAssociationsTest tests

Reported by Emilio Tagua | July 31st, 2008 @ 02:59 PM | in 2.x

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.

Comments and changes to this ticket

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

Pages