rails/rails — pull request #4114 by alexeymuranov (2011-12-21 18:53:45+00:00)
Title: Fix a fixtures test case with table prefix/suffix

Make sure the table name of a model is reset in a test case after assigning `ActiveRecord::Base.table_name_prefix` and `ActiveRecord::Base.table_name_suffix`. Before this change, `Topic.table_name` would use the "memoized" value without prefix and suffix.

This change does not currently fix anything, but make the test case to test the right thing. I plan to submit a patch to make fixtures use the table name defined in the associated model, and there this test would fail without this fix.

This was somebody else's test case, so an independent opinion on the change can be helpful.