Sha256: bbe8f0e90b6ba491a16abfca3f363ff6c797d92d7483fcb62b280ff4dbdadf4b
Contents?: true
Size: 886 Bytes
Versions: 4
Compression:
Stored size: 886 Bytes
Contents
module RSpec module Core module Deprecation # @private # # Used internally to print deprecation warnings def deprecate(deprecated, replacement_or_hash={}, ignore_version=nil) # Temporarily support old and new APIs while we transition the other # rspec libs to use a hash for the 2nd arg and no version arg data = Hash === replacement_or_hash ? replacement_or_hash : { :replacement => replacement_or_hash } RSpec.configuration.reporter.deprecation( { :deprecated => deprecated, :call_site => caller(0)[2] }.merge(data) ) end # @private # # Used internally to print deprecation warnings def warn_deprecation(message) RSpec.configuration.reporter.deprecation :message => message end end end extend(Core::Deprecation) end
Version data entries
4 entries across 4 versions & 1 rubygems