From a5ab38c7bb99e135e29f5727e3e75a1e562d8216 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 10 Jun 2014 17:14:50 -0700 Subject: remove deprecated code. Rely on `describe` provided by minitest --- .../lib/active_support/testing/declarative.rb | 24 ---------------------- 1 file changed, 24 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/testing/declarative.rb b/activesupport/lib/active_support/testing/declarative.rb index e709e6edf5..0bf3643a56 100644 --- a/activesupport/lib/active_support/testing/declarative.rb +++ b/activesupport/lib/active_support/testing/declarative.rb @@ -1,30 +1,6 @@ module ActiveSupport module Testing module Declarative - - def self.extended(klass) #:nodoc: - klass.class_eval do - - unless method_defined?(:describe) - def self.describe(text) - if block_given? - super - else - message = "`describe` without a block is deprecated, please switch to: `def self.name; #{text.inspect}; end`\n" - ActiveSupport::Deprecation.warn message - - class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 - def self.name - "#{text}" - end - RUBY_EVAL - end - end - end - - end - end - unless defined?(Spec) # Helper to define a test method using a String. Under the hood, it replaces # spaces with underscores and defines the test method. -- cgit v1.2.3