Sha256: 1aa47ca1ded9db68b73f5204596fe33fb4eb8a946d915c70695c51717a8d6734
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
RSpec::Matchers.define :have_no_errors do match do |test_runner| test_runner.raised_error.nil? end failure_message_for_should do |test_runner| err = test_runner.raised_error filtered = (err.backtrace || []).reject do |line| Cucumber::Ast::StepInvocation::BACKTRACE_FILTER_PATTERNS.find { |p| line =~ p } end (["#{err.class}: #{err}"]+filtered).join("\n ") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
message-driver-0.4.0 | features/support/no_error_matcher.rb |