Sha256: d2591f19e2813af3dd698eff9b6533dd80ad2df9391e531c62f06641057e99f7

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 Bytes

Contents

RSpec::Matchers.define :have_no_errors do
  match do |test_runner|
    test_runner.raised_error.nil?
  end

  failure_message do |test_runner|
    err = test_runner.raised_error
    filtered = (err.backtrace || []).reject do |line|
      Cucumber::Formatter::BACKTRACE_FILTER_PATTERNS.find { |p| line =~ p }
    end
    (["#{err.class}: #{err}"] + filtered).join("\n  ")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
message-driver-1.0.1 features/support/no_error_matcher.rb
message-driver-1.0.0 features/support/no_error_matcher.rb
message-driver-0.7.2 features/support/no_error_matcher.rb
message-driver-0.7.1 features/support/no_error_matcher.rb
message-driver-0.7.0 features/support/no_error_matcher.rb