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 Spec2 module Expectations3 # If Test::Unit is loaed, we'll use its error as baseclass, so that Test::Unit4 # will report unmet RSpec expectations as failures rather than errors.5 superclass = ['Test::Unit::AssertionFailedError', '::StandardError'].map do |c|6 eval(c) rescue nil7 end.compact.first89 class ExpectationNotMetError < superclass10 end11 end12end