diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-10 17:14:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-10 17:14:57 -0700 |
commit | a5ab38c7bb99e135e29f5727e3e75a1e562d8216 (patch) | |
tree | cc49859726bd090bf5ad1eaf4ec3ec6268f7aecc /activesupport | |
parent | 80b4fe2c50feb295af64e1a8c960cfed4fd8ae19 (diff) | |
download | rails-a5ab38c7bb99e135e29f5727e3e75a1e562d8216.tar.gz rails-a5ab38c7bb99e135e29f5727e3e75a1e562d8216.tar.bz2 rails-a5ab38c7bb99e135e29f5727e3e75a1e562d8216.zip |
remove deprecated code. Rely on `describe` provided by minitest
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/testing/declarative.rb | 24 |
1 files changed, 0 insertions, 24 deletions
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. |