Sha256: aae495c6a905c0773f73392f13647ffb3652d6fdebc81c1bf2af58a4bc15b227
Contents?: true
Size: 393 Bytes
Versions: 18
Compression:
Stored size: 393 Bytes
Contents
module Rspec module Expectations # If Test::Unit is loaed, we'll use its error as baseclass, so that Test::Unit # will report unmet RSpec expectations as failures rather than errors. superclass = ['Test::Unit::AssertionFailedError', '::StandardError'].map do |c| eval(c) rescue nil end.compact.first class ExpectationNotMetError < superclass end end end
Version data entries
18 entries across 18 versions & 1 rubygems