Sha256: a581f1d719613e496c45ecc90c0479914ef5bfbd37cba6995b1aafb16ab6e024

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

module RSpec
  module Core

    class 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

      def exclude?(line)
        return false if @full_backtrace
        matches_an_exclusion_pattern?(line) &&
        @inclusion_patterns.none? { |p| p =~ line }
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact-1.3.0 lib/pact/provider/rspec/backtrace_formatter.rb