method

describe

rails latest stable - Class: ActiveSupport::Testing::Declarative

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

describe(text)
public

No documentation available.

# File activesupport/lib/active_support/testing/declarative.rb, line 9
            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                   def self.name                    "#{text}"                  end, __FILE__, __LINE__ + 1
              end
            end