You can clone with
HTTPS or Subversion.
This line will be shown as a failing line in the report:
This is one sample of such a report:
I can reproduce it like this:
describe "something" do
it "doesn't work" do
C:\Users\jarmo\Desktop\minu\projects\Ruby\blah2>rspec some_spec.rb -f html -o out.html
This is the stack with -b:
It looks like format_backtrace is not called on the error's backtrace. So the backtrace is never cleaned. The SnippetExtractor takes an error in as an argument and pulls the backtrace from there. It then does not have access to the format_backtrace method. It looks like SnippetExtractor could be written to take a backtrace instead.
I have a fix but it maybe messing up textmate_formatter's open file links. I do not own a mac so I am not sure what they should be like. But I have a fix for this that fixes the snippets for both textmate and html formatters.
Any plan to merge these changes in? Are these made even into pull requests?
These changes seem to be working for me so far. Any plan to merge into master so i could remove these lines from my gem? :)
Hate to write just +1, but it is a major headpain, can you fix this? pretty please with sugar on?
fix for html formatter pulling the wrong snippets
Make sure textmate formatter doesn't try to get snippet from textmate…
- Closes #214.
Sorry this took so long to get to, but it's in now and will be part of the next release.
@scrummyin, the html fix was good so I merged your commit for that. The textmate fix was close but not quite, so I ended up rolling my own on that. Let me know if you have any questions.
Changelog for #214