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 Example3 module Pending4 def pending(message = "TODO")5 if block_given?6 begin7 yield8 rescue Exception => e9 raise Spec::Example::ExamplePendingError.new(message)10 end11 raise Spec::Example::PendingExampleFixedError.new("Expected pending '#{message}' to fail. No Error was raised.")12 else13 raise Spec::Example::ExamplePendingError.new(message)14 end15 end16 end17 end18end