I'm trying to implement a TDD design pattern in Rails for the first
time for a system maintenance reporting application, and running into
issues with STI (also a first-time user) and fixtures causing my tests
to throw errors.
Fixtures are a bit odd - they're more table based than class based
(sortof - hence the odd). If you stick everything in reports.yml you
should be ok.
Or just use factories. At least with Machinist, they seem to work
directly with the class structure. I've never used STI with Machinist,
but I'd be *very* surprised, given Machinist's architecture, if it
didn't work as expected, without the gotchas of fixtures.