Sha256: c2c51216fe1c1eeba5e7d14be4638480e2170a9a9f3dcae60eaef909882c40d1
Contents?: true
Size: 795 Bytes
Versions: 5
Compression:
Stored size: 795 Bytes
Contents
require 'rspec/expectations/caller_filter' unless defined?(::RSpec::CallerFilter) module RSpec module Expectations 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(Expectations::Deprecation) unless respond_to?(:deprecate) end
Version data entries
5 entries across 5 versions & 1 rubygems