module RSpec::Mocks::Deprecation
def deprecate(deprecated, options={})
- Private: -
def deprecate(deprecated, options={}) message = "DEPRECATION: #{deprecated} is deprecated." message << " Use #{options[:replacement]} instead." if options[:replacement] message << " Called from #{CallerFilter.first_non_rspec_line}." warn message end
def warn_deprecation(warning)
- Private: -
def warn_deprecation(warning) message = "\nDEPRECATION: #{warning}\n" warn message end