Method: RSpec::Core::Configuration#reporter
- Defined in:
- lib/rspec/core/configuration.rb
#reporter ⇒ RSpec::Core::Reporter
Returns the currently configured reporter.
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 |
# File 'lib/rspec/core/configuration.rb', line 1056 def reporter # @reporter_buffer should only ever be set in this method to cover # initialization of @reporter. @reporter_buffer || @reporter ||= begin @reporter_buffer = DeprecationReporterBuffer.new formatter_loader.prepare_default output_wrapper, deprecation_stream @reporter_buffer.play_onto(formatter_loader.reporter) @reporter_buffer = nil formatter_loader.reporter end end |