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
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/errors.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/errors.rb
rspec-expectations-2.6.0 lib/rspec/expectations/errors.rb
rspec-expectations-2.6.0.rc6 lib/rspec/expectations/errors.rb
rspec-expectations-2.6.0.rc4 lib/rspec/expectations/errors.rb
rspec-expectations-2.6.0.rc2 lib/rspec/expectations/errors.rb
rspec-expectations-2.5.0 lib/rspec/expectations/errors.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/errors.rb
rspec-expectations-2.4.0 lib/rspec/expectations/errors.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/errors.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/errors.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/errors.rb
rspec-expectations-2.3.0 lib/rspec/expectations/errors.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/errors.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/errors.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/lib/rspec/expectations/errors.rb
rspec-expectations-2.2.0 lib/rspec/expectations/errors.rb
rspec-expectations-2.1.0 lib/rspec/expectations/errors.rb
rspec-expectations-2.0.1 lib/rspec/expectations/errors.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations/errors.rb