A friendly word of advice: don’t leave empty test fixtures in your Rails projects. In some situations, it can cause unexpected test failures that are quite nasty to track down.
Matthew Bass
Musings on software and life...
A friendly word of advice: don’t leave empty test fixtures in your Rails projects. In some situations, it can cause unexpected test failures that are quite nasty to track down.
Interesting… I’ve never seen that (and I leave them littered all over the place). What causes the failure? Inquiring minds want to know 🙂
I’m not 100% sure exactly what happened, but the forces of validation, a stale test database, and a legacy table that didn’t allow null values appeared to collide in a perfect storm of testing misery. As soon as I removed the empty test fixture, the skies got clear again.