Don't Test Like That!

As a consultant, I come across a lot of bad test suites in Rails and JavaScript apps. The following are all RSpec, Jest, or Jasmine tests that I have found in the wild – with minor changes for clarity or to protect the guilty :) (myself included!) These are some simple things not to do, along with some advice about what to do to accomplish the same goal. Don’t test internals in a system test System »