Sha256: e1edab29fea83a8e17a4dceffb58e0f9865f21842f95bc8b04bcdc288b942e2b

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

module Spec
  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

3 entries across 3 versions & 1 rubygems

Version Path
picolena-0.1.6 rails_plugins/rspec/lib/spec/expectations/errors.rb
picolena-0.1.7 rails_plugins/rspec/lib/spec/expectations/errors.rb
picolena-0.1.8 rails_plugins/rspec/lib/spec/expectations/errors.rb