changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/lib/spec/expectations/errors.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1module 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
12end