adding all of botlist, initial add
[botlist.git] / openbotlist / WEB-INF / lib / ruby / rspec / lib / spec / expectations / errors.rb
blob1fabd105d542657fc2d4b858596f4dff9ffc407e
1 module Spec
2   module Expectations
3     # If Test::Unit is loaed, we'll use its error as baseclass, so that Test::Unit
4     # will report unmet RSpec expectations as failures rather than errors.
5     superclass = ['Test::Unit::AssertionFailedError', '::StandardError'].map do |c|
6       eval(c) rescue nil
7     end.compact.first
8     
9     class ExpectationNotMetError < superclass
10     end
11   end
12 end