method
deprecate

1.2.8 -
Show latest stable
-
0 notes -
Class: Spec
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
deprecate(method, alternate_method=nil)
public
Hide source
# File lib/spec/deprecation.rb, line 3 def deprecate(method, alternate_method=nil) 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