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.
Loading...
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.
Comments are closed.
Matthew Bass is powered by WordPress | Using Tiga theme with a bit of Ozh + WP 2.2 / 2.3 Tiga Upgrade
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.