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.
--
twitter @danbernier
http://wordcram.org | http://newhaven.io
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/CAMBmGsM8fvseQ0wDzynZY62%2BHJvQgYNU3rvst85%2BqPVqGUSfNg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.