Open jacob-carlborg-apoex opened 3 weeks ago
Hey @jacob-carlborg-apoex , thanks for the report!
Since 3.1.0, RSpec has included a filter_gems_from_backtrace
config option. (That in turns calls RSpec::Core::BacktraceFormatter#filter_gems
and so on.)
If we can figure out how to call RSpec.configuration.filter_gems_from_backtrace('super_diff')
exactly once when super_diff/rspec
is loaded, I think that will solve this issue.
Can't we just call RSpec.configuration.filter_gems_from_backtrace('super_diff')
from the super_diff/rspec
file?
I believe so. I left this issue open in the hopes of attracting a contributor (perhaps you? 🙂) to open a PR!
When running RSpec with the default output for the following code snippet:
I get the following output:
The stacktrace contains just the spec file, which is correct:
But when running the same code with SuperDiff enabled I get an extra line in the stacktrace which points to internal details in the library:
It includes the additional line:
It would be nice if those lines could be removed from the stacktrace.
Version information: