Forum: Ruby on Rails Tests not picking up table name changes.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
joey__ (Guest)
on 2006-02-12 20:59
I have a model called Index, but the table is called Index. So in my
model, I have
ste_table_name 'index'

But in tests the fixtures are called indices, so I renamed it and
>>fixtures :indices
>>fixtures :index

When I try use index(:first), I get a nil error. I don't know what Im
doing wrong.

Nick S. (Guest)
on 2006-02-13 03:26
(Received via mailing list)
Did you change the name of the file as well? (Guessing you did, but
hey, I've done weirder things). The other thing you'll need to do is
clone the structure to the test again if you have any changes in your
dev db.

This topic is locked and can not be replied to.