Sha256: 197a9c5b38d4b0183d6e6bcd457fb0f5d1459319d1e8fe7c52a3af6d5c3c95ca
Contents?: true
Size: 409 Bytes
Versions: 7
Compression:
Stored size: 409 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.detect { |p| line =~ p } end (["#{err.class}: #{err.to_s}"]+filtered).join("\n ") end end
Version data entries
7 entries across 7 versions & 1 rubygems