Sha256: 263329911f5641326631a6215adf0d0750b7a1b83c3a02b9c45519437d95b59a
Contents?: true
Size: 503 Bytes
Versions: 15
Compression:
Stored size: 503 Bytes
Contents
RSpec::Core::Formatters::DeprecationFormatter::GeneratedDeprecationMessage.class_eval do # string mutations def to_s msg = "#{@data.deprecated} is deprecated." msg += " Use #{@data.replacement} instead." if @data.replacement msg += " Called from #{@data.call_site}." if @data.call_site msg end def too_many_warnings_message msg = "Too many uses of deprecated '#{type}'. " msg += RSpec::Core::Formatters::DeprecationFormatter::DEPRECATION_STREAM_NOTICE msg end end
Version data entries
15 entries across 15 versions & 2 rubygems