Sha256: afa0dd0f8ec53a076f6c29a09d57761cc01a3fef16d358cdadb6535dc2f418c6

Contents?: true

Size: 392 Bytes

Versions: 125

Compression:

Stored size: 392 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

125 entries across 125 versions & 21 rubygems

Version Path
dchelimsky-rspec-1.1.10 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.11.1 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.11.2 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.11.3 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.11.4 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.11.5 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.11.6 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.11.7 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.11 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.12 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.1 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.13 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.2 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.3 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.4 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.5 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.6 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.7 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.8 lib/spec/expectations/errors.rb
dchelimsky-rspec-1.1.99.9 lib/spec/expectations/errors.rb