Could a spec with no expectations automatically pend, or fail? possibly controlled via a flag?
it 'should have muffins'
baker.has_muffins? # <- a quick scan makes this look right
expect(baker.has_muffins?).to be_true # <- but you need this
end
$ rspec # The empty spec passes
$ rspec --fail-empty-specs # The empty spec fails
$ rspec --pend-empty-specs # The empty spec pends
In an ideal world, this would be unneeded. But when you work on a large code base, and you're interrupted, it's pretty easy to make this mistake.
--