Tagged in

Ruby

Clutter Developers
Clutter Developers
Working at Clutter. Sharing our knowledge on how to keep clutter out of your code.
More information
Followers
36
More, on Medium

Describe “why” you are testing, not “what“

There are three basic techniques that you can apply to make your RSpec tests more readable and understandable to your co-workers:

  1. Use meaningful variable names.
  2. Write all the preconditions inside a…