Sha256: 589c71fe7369ea034de610e0a0e47cd5850a1d844bb9595cf0f4d4392fb99009
Contents?: true
Size: 483 Bytes
Versions: 30
Compression:
Stored size: 483 Bytes
Contents
module RSpec module Mocks module Deprecation # @private # # Used internally to print deprecation warnings 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 end end extend(Mocks::Deprecation) unless respond_to?(:deprecate) end
Version data entries
30 entries across 30 versions & 8 rubygems