Sha256: 2f538cc11c464e21e57047d4e063941058d6586c5cc64c27d77f120b88045eb0
Contents?: true
Size: 642 Bytes
Versions: 7
Compression:
Stored size: 642 Bytes
Contents
module ::RSpec module Support module Warnings def warn_with(message, options={}) call_site = options.fetch(:call_site) { CallerFilter.first_non_rspec_line } # mutable strings # message << " Use #{options[:replacement]} instead." if options[:replacement] message += " Use #{options[:replacement]} instead." if options[:replacement] # message << " Called from #{call_site}." if call_site message += " Called from #{call_site}." if call_site ::Kernel.warn message end alias_method :support_warn_with, :warn_with end end extend RSpec::Support::Warnings end
Version data entries
7 entries across 7 versions & 2 rubygems