diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-17 14:24:33 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-18 21:34:00 -0200 |
commit | 92da512125fb5aeb7d7418c80cdd0ead5aaf30bb (patch) | |
tree | b1f7741ec097c58ae2dfa8ca8c06d6252fec0562 /activesupport/lib | |
parent | 4913984122c436a74179e6d0aa4b5ec0ca2ebe59 (diff) | |
download | rails-92da512125fb5aeb7d7418c80cdd0ead5aaf30bb.tar.gz rails-92da512125fb5aeb7d7418c80cdd0ead5aaf30bb.tar.bz2 rails-92da512125fb5aeb7d7418c80cdd0ead5aaf30bb.zip |
Properly deprecate #pending from AS::TestCase
Check https://github.com/rails/rails/pull/4575#issuecomment-5765575.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/testing/pending.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/testing/pending.rb b/activesupport/lib/active_support/testing/pending.rb index 510f80f32c..944806bb64 100644 --- a/activesupport/lib/active_support/testing/pending.rb +++ b/activesupport/lib/active_support/testing/pending.rb @@ -1,20 +1,14 @@ -# Some code from jeremymcanally's "pending" -# https://github.com/jeremymcanally/pending/tree/master +require 'active_support/deprecation' module ActiveSupport module Testing module Pending - unless defined?(Spec) - - @@pending_cases = [] - @@at_exit = false - def pending(description = "", &block) + ActiveSupport::Deprecation.warn("#pending is deprecated and will be removed in Rails 4.1, please use #skip instead.") skip(description.blank? ? nil : description) end end - end end end |