class method self.describe

Ruby on Rails 4.1.16

Since v3.0.20 Last seen in v4.1.16

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16

Signature

self.describe(text)

No documentation comment.

Parameters

text req
Source
# 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 <<-RUBY_EVAL, __FILE__, __LINE__ + 1
                  def self.name
                    "#{text}"
                  end
                RUBY_EVAL
              end
            end

Defined in activesupport/lib/active_support/testing/declarative.rb line 9 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Testing::Declarative

Type at least 2 characters to search.

↑↓ navigate · open · esc close