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.
Written by Benjamin Sullivan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Related Tags
#ruby
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#