class ActiveRecordProgressFormatter
Attributes
collector[R]
colorizer[R]
report[R]
Public Class Methods
new(output)
click to toggle source
Calls superclass method
# File lib/rspec/activerecord/progress_formatter.rb, line 11 def initialize(output) super @colorizer = ::RSpec::Core::Formatters::ConsoleCodes @collector = ActiveRecordFormatterHelpers::Collector.new @report = ActiveRecordFormatterHelpers::Report.new(collector) end
Public Instance Methods
dump_summary(summary)
click to toggle source
# File lib/rspec/activerecord/progress_formatter.rb, line 37 def dump_summary(summary) base = ActiveRecordFormatterBase.new(summary, collector) output.puts base.colorized_summary output.puts "\nOutputting Detailed Profile Data to #{report.report_path}" report.write end
example_group_finished(example_group)
click to toggle source
# File lib/rspec/activerecord/progress_formatter.rb, line 29 def example_group_finished(example_group) collector.group_finished(example_group.group) end
example_group_started(example_group)
click to toggle source
Calls superclass method
# File lib/rspec/activerecord/progress_formatter.rb, line 24 def example_group_started(example_group) collector.group_started(example_group.group) super end
example_started(example)
click to toggle source
# File lib/rspec/activerecord/progress_formatter.rb, line 33 def example_started(example) collector.reset_example(example) end
start(_start_notification)
click to toggle source
Calls superclass method
# File lib/rspec/activerecord/progress_formatter.rb, line 19 def start(_start_notification) output.puts "Recording and reporting ActiveRecord select and creation counts." super end