Sha256: dc228966b82834737bc4d01dc6fa81d01b6e880accbcb113235835e99350acff

Contents?: true

Size: 393 Bytes

Versions: 45

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

45 entries across 45 versions & 4 rubygems

Version Path
rspec-expectations-2.0.0.beta.13 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.12 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.11 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.10 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.9 lib/rspec/expectations/errors.rb