Remove active_support/testing/pending.rb was deprecated.

This commit is contained in:
kennyj 2013-06-01 13:16:32 +09:00
parent f8f30c88ad
commit 6c2cbc6fff
3 changed files with 0 additions and 27 deletions

View File

@ -4,7 +4,6 @@ require 'active_support/testing/tagged_logging'
require 'active_support/testing/setup_and_teardown'
require 'active_support/testing/assertions'
require 'active_support/testing/deprecation'
require 'active_support/testing/pending'
require 'active_support/testing/declarative'
require 'active_support/testing/isolation'
require 'active_support/testing/constant_lookup'
@ -54,7 +53,6 @@ module ActiveSupport
include ActiveSupport::Testing::SetupAndTeardown
include ActiveSupport::Testing::Assertions
include ActiveSupport::Testing::Deprecation
include ActiveSupport::Testing::Pending
extend ActiveSupport::Testing::Declarative
# test/unit backwards compatibility methods

View File

@ -1,14 +0,0 @@
require 'active_support/deprecation'
module ActiveSupport
module Testing
module Pending # :nodoc:
unless defined?(Spec)
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

View File

@ -1,11 +0,0 @@
require 'abstract_unit'
module ActiveSupport
class TestCaseTest < ActiveSupport::TestCase
def test_pending_deprecation
assert_deprecated do
pending "should use #skip instead"
end
end
end
end