The 5 Rules of Simple RSpec Tests | solnic.codes - 3. meaninful example descriptions
Fri May 28 2021 14:40:41 GMT+0000 (Coordinated Universal Time)
Saved by @captm
You can streamline a lot with RSpec’s powerful DSL but I prefer to optimize for readability and having nice descriptions is part of this. In general, I try to describe actual scenarios that can happen in the actual client code (as in, the code that will be using the thing I’m writing a spec for).
https://solnic.codes/2021/05/11/the-5-rules-of-simple-rspec-tests/
Comments