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
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.rc lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.22 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.20 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.19 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.18 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.17 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.16 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.15 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.0.beta.14 lib/rspec/expectations/errors.rb