Permalink
Browse files

remove deprecated code. Rely on `describe` provided by minitest

  • Loading branch information...
1 parent 80b4fe2 commit a5ab38c7bb99e135e29f5727e3e75a1e562d8216 @tenderlove tenderlove committed Jun 11, 2014
Showing with 0 additions and 24 deletions.
  1. +0 −24 activesupport/lib/active_support/testing/declarative.rb
View
24 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.

0 comments on commit a5ab38c

Please sign in to comment.