I’m wondering what the accepted method for doing unit tests on STI
I tried to create a fixture for the class but Rails tries to load that
data into the non-existent child table. I could create a fixture named
for the real, parent table, but then it would be very difficult to
test for the individual functionality and integrity of each sub-class.
I saw this page
http://wiki.rubyonrails.com/rails/pages/FlexibleFixtures , but the
comment at the top leads me to believe that solution won’t work, and I
would like to avoid using the linked patch to fork my Rails install
since that sounds like more trouble than it’s worth.
Unit testing an STI model seems like a fairly com men event, so there
must be some easy way to do it. What am I missing?