rails/rails — pull request #4153 by alexeymuranov (2011-12-23 21:01:32+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.