Sha256: faff870981735b337fc445daedbf99c886a81da50a8f1f3c938840b718be3c13
Contents?: true
Size: 699 Bytes
Versions: 8
Compression:
Stored size: 699 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 #{CallerFilter.first_non_rspec_line}." warn message end # @private # # Used internally to print deprecation warnings def warn_deprecation(warning) message = "\nDEPRECATION: #{warning}\n" warn message end end end extend(Mocks::Deprecation) unless respond_to?(:deprecate) end
Version data entries
8 entries across 8 versions & 1 rubygems