From b1c46b5f935ec091263a249adb6876fab4ed70c2 Mon Sep 17 00:00:00 2001 From: Damian Janowski Date: Tue, 3 Mar 2009 15:20:13 -0200 Subject: [PATCH] Added pending_test to Test::Unit. --- .../lib/active_support/testing/declarative.rb | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/activesupport/lib/active_support/testing/declarative.rb b/activesupport/lib/active_support/testing/declarative.rb index cb6a584..10c0be2 100644 --- a/activesupport/lib/active_support/testing/declarative.rb +++ b/activesupport/lib/active_support/testing/declarative.rb @@ -16,6 +16,12 @@ module ActiveSupport end end end + + def pending_test(name, &block) + test(name) do + puts "\nPENDING: #{name} (in #{eval('"#{__FILE__}:#{__LINE__}"', block.binding)})" + end + end end end end -- 1.6.0.5