When I run a spec file (rspec spec/models/user_spec.rb) it prints something like 12 examples, 2 failures, 3 pending.
What’s the fastest way to get the 12 examples part of it? (without running the spec)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have found a way to do this and involves the following snippet being add to
spec/spec_helper.rb:This way when I do:
it assumes all the spec examples are pending and returns:
Of course there is a problem. It doesn’t account for all the really pending spec examples but I think it is a good enough solution.