I have a PriorityItem model which is derived from Item :
class PriorityItem < Item
end
the problem is, my unit tests for PriorityItem fail when the fixtures
are loaded, rails looks for a ''priority_items'' table instead
of using
the ''items'' table
here''s the error I get :
1) Error:
test_truth(PriorityItemTest):
ActiveRecord::StatementInvalid: #42S02Table
''hrdev_test.priority_items'' doesn''t exist
: DELETE FROM priority_items
any ideas where I''m going wrong? on a possibly related note, can the
model generator generate subclasses? i couldn''t figure out how so I
used it to generate PriorityItem then edited the file to change
inheritance from AR::Base to Item ... do I need to make changed to the
test classes too?
thanks for reading
alan