From 4913984122c436a74179e6d0aa4b5ec0ca2ebe59 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 17 Nov 2012 14:21:09 -0200 Subject: Revert "Merge pull request #4575 from carlosantoniodasilva/remove-test-pending" This reverts commit 1620df78dff527b4fa3f7b204fa05d1b630aae17, reversing changes made to 2d000328dfc0d4b297fb4bdcebc9af6c2fb559dc. Conflicts: activesupport/CHANGELOG.md activesupport/lib/active_support/test_case.rb --- activesupport/lib/active_support/testing/pending.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 activesupport/lib/active_support/testing/pending.rb (limited to 'activesupport/lib/active_support/testing/pending.rb') diff --git a/activesupport/lib/active_support/testing/pending.rb b/activesupport/lib/active_support/testing/pending.rb new file mode 100644 index 0000000000..510f80f32c --- /dev/null +++ b/activesupport/lib/active_support/testing/pending.rb @@ -0,0 +1,20 @@ +# Some code from jeremymcanally's "pending" +# https://github.com/jeremymcanally/pending/tree/master + +module ActiveSupport + module Testing + module Pending + + unless defined?(Spec) + + @@pending_cases = [] + @@at_exit = false + + def pending(description = "", &block) + skip(description.blank? ? nil : description) + end + end + + end + end +end -- cgit v1.2.3