Permalink
Browse files

fix the profile formatter

  • Loading branch information...
1 parent c64079e commit 2d18c1ee0ec95f9679aa274066d9ed5ecb5b4d82 @dchelimsky dchelimsky committed Jun 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/core/formatters/base_text_formatter.rb
@@ -60,8 +60,8 @@ def dump_summary
sorted_examples = examples.sort_by { |example| example.execution_result[:run_time] }.reverse.first(10)
output.puts "\nTop #{sorted_examples.size} slowest examples:\n"
sorted_examples.each do |example|
- output.puts " (#{format_seconds(duration, 7)} seconds) #{example}"
- output.puts grey(" # #{format_caller(example.metadata[:caller])}")
+ output.puts " (#{format_seconds(example.execution_result[:run_time])} seconds) #{example}"
+ output.puts grey(" # #{format_caller(example.metadata[:location])}")
end
end

0 comments on commit 2d18c1e

Please sign in to comment.