rspec-core icon indicating copy to clipboard operation
rspec-core copied to clipboard

The Html formatter does not keep the failed count correctly

Open scrummyin opened this issue 15 years ago • 3 comments

Each time example_failed is called it resets the counter to zero. Counter is then used to generate id's which are always id="failure_0". If @counter were set in the constructed and added to each time example_failed was called this would fix the issue.

scrummyin avatar Jan 03 '11 20:01 scrummyin

Care to submit a patch?

dchelimsky avatar Jan 03 '11 20:01 dchelimsky

Here you go: https://github.com/scrummyin/rspec-core/commit/86bd44f3c9d1118751738893748fa900e91556f9

Also, it was affecting the textmate formatter as well. Let me know if you want something more. Or a different format, because I'm not used to committing patches to other people's code on github. So let me know if there is better etiquette.

scrummyin avatar Jan 03 '11 21:01 scrummyin

corrected the count in the html formater

  • Closed by ad79868832a017898c36233bf4f4d65ea409ce33.

dchelimsky avatar Jan 04 '11 05:01 dchelimsky