Last Updated: February 25, 2016
·
518
· bonsaiben

assert what your tests assume

If you have a test that depends on a state already provided by a before block, factory, or db default, assert it anyway.

The danger in not asserting is that if the default state ever changes then the test will be compromised--not that your test will fail (that would be great), but that your test might pass when it shouldn't.