Hi, I have a model where model name-table name relation doesn't follow the pluralize rule. I'm setting my real table name in the model with set_table_name function. I importend the structure form the _development database to the _test one with rake clone_structure_to_test. For the model above i'm writing a test unit which raises an error. It tries to delete the records from the table wich resides in the _test database, but it searches for the table with the name pluralized, wich of course does not exist. How cand i bound the test to the models setting regarding the table name. thanks!
on 2007-01-30 09:21
on 2007-01-30 09:30
if I rename the name of the table_plural.yml to the table_real.yml everythig works ok and also the fixtures :table_plural to fixtures :table_real everything works ok. tnks.