method

deprecate

rspec latest stable - Class: Spec
deprecate(method, alternate_method=nil)
public

No documentation available.

# File lib/spec/deprecation.rb, line 3
    def deprecate(method, alternate_method=nil)
      return if Spec::Runner.configuration.suppress_deprecation_warnings?
      message = "\n*****************************************************************\nDEPRECATION WARNING: you are using deprecated behaviour that will\nbe removed from a future version of RSpec.\n\n\#{caller(0)[2]}\n\n* \#{method} is deprecated.\n"
      if alternate_method
        message << "* please use \#{alternate_method} instead.\n"
      end

      message << "*****************************************************************"
      warn(message)
    end