Unit tests / table names

I recently underwent a (forced) schema change and had to change my
class’s table name to “keywords_raw”. Changing this in the model was no
problem. All my existing unit tests obviously assumed everything was
“keywords” so I’m trying to change things to work, but I can’t figure
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
done something like this or have an idea on how to get around classes
customized tables names?


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