class RSpec::Core::BacktraceFormatter

RSpec 3 has a hardwired @system_exclusion_patterns which removes everything matching /bin// This causes all the backtrace lines to be cleaned, as rake pact:verify now shells out to the executable ‘pact verify …` which then causes all the lines to be included as the BacktraceFormatter will include all lines of the backtrace if all lines were filtered out. This monkey patch only shows lines including bin/pact and removes the “show all lines if no lines would otherwise be shown” logic.