aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/pending.rb
blob: 944806bb64d17baba463a7554bdfa995da4168ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'active_support/deprecation'

module ActiveSupport
  module Testing
    module Pending
      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