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 #{caller(0)[2]}." warn message end