Ruby

RSpec be_truthy, exist, or be true?

1 minute read

The documentation for RSpec is amazingly detailed, but sometimes falls a bit short on when to apply certain matchers. In many of the specs that I’ve reviewed, incorrect matchers were used to test for pure Boolean values.

Read 483 more words...