Unit tests / table names

I recently underwent a (forced) schema change and had to change my
“Keyword”
class’s table name to “keywords_raw”. Changing this in the model was no
problem. All my existing unit tests obviously assumed everything was
named
“keywords” so I’m trying to change things to work, but I can’t figure
out
the right combo. I’ve tried changing the fixture and unit test name to
“keywords_raw” which loads the table ok, but then complains about not
finding a class named “keywords_raw”.

I couldn’t find a table_name= method for fixtures/unit tests. Anyone
have
done something like this or have an idea on how to get around classes
with
customized tables names?

Thanks,
ed

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs