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!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---