Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/rspec_flat_error_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ def dump_failures(notification)
output.puts formatted
end

def dump_summary(_notification)
# TODO: Finished in 0.34138 seconds (files took 0.26296 seconds to load) (copy from BaseFormatter)
# TODO: 1 example, 0 failures (copy from BaseFormatter)
def dump_summary(notification)
output.puts "\nFinished in #{notification.formatted_duration} (files took #{notification.formatted_load_time} to load)."
end

protected
Expand Down
4 changes: 4 additions & 0 deletions spec/rspec_flat_error_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ def example_spec_output_lines
it 'outputs correct progress info for the entire test suite' do
expect(example_spec_output_lines).to include('.**FFFFFFFFFF')
end

it 'outputs the timing information' do
expect(example_spec_output).to match(/Finished in \d+.\d+ seconds \(files took \d+.\d+ seconds to load\)./)
end
end

describe 'pending examples' do
Expand Down