Flowdock
method

deprecate

Importance_0
1.3.1 - Show latest stable - 0 notes - Class: Spec
deprecate(method, alternate_method=nil) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# 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
Register or log in to add new notes.