Explore >> Select a destination


You are here

blog.8thlight.com
| | jimpurbrick.com
5.2 parsecs away

Travel
| |
| | 8thlight.com
0.6 parsecs away

Travel
| |
| | blog.cleancoder.com
0.0 parsecs away

Travel
| |
| | mattsencenbaugh.com
31.1 parsecs away

Travel
| TDD Tip: Invert your assertion One top tip I picked up years ago from a co-worker was to invert your assertions when you are in the midst of your TDD cycles. In other words, if you have an RSpec assertion like this: expect(foo.nil?).to be_truthy flip the truthy to falsey and run the test expect(foo.nil?).to be_falsey What you want to see there is that your test fails. In a 'true' TDD environment the test would be perfectly clean and no state would be acting on your subject, but that's just not how most test suites for production products work.