123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Configuration::DeprecationReporterBuffer Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: rspec-core/lib/rspec/core/configuration.rb

Overview

This buffer is used to capture all messages sent to the reporter during reporter initialization. It can then replay those messages after the formatter is correctly initialized. Otherwise, deprecation warnings during formatter initialization can cause an infinite loop.

Class Method Summary

Instance Method Summary

Instance Method Details

#deprecation(*args)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/configuration.rb', line 1051

def deprecation(*args)
  @calls << args
end

#play_onto(reporter)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/configuration.rb', line 1055

def play_onto(reporter)
  @calls.each do |args|
    reporter.deprecation(*args)
  end
end