Skip to content

Commit

Permalink
Remove extraneous word.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinko committed Apr 18, 2012
1 parent e9b1776 commit 4d9472e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/core/formatters/base_text_formatter.rb
Expand Up @@ -55,7 +55,7 @@ def dump_profile
sorted_examples = examples.sort_by { |example| example.execution_result[:run_time] }.reverse.first(10)

total, slows = [examples, sorted_examples].map {|exs| exs.inject(0.0) {|i, e| i + e.execution_result[:run_time] } }
output.puts "\nTop #{sorted_examples.size} slowest examples (#{format_seconds(slows)} seconds, taken #{((slows / total) * 100).round(2)}% of total time):\n"
output.puts "\nTop #{sorted_examples.size} slowest examples (#{format_seconds(slows)} seconds, #{((slows / total) * 100).round(2)}% of total time):\n"

sorted_examples.each do |example|
output.puts " #{example.full_description}"
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/core/formatters/base_text_formatter_spec.rb
Expand Up @@ -348,7 +348,7 @@ def run_all_and_dump_pending

it "prints ocuppied time" do
formatter.dump_profile
output.string.should =~ /Top 1 slowest examples \(0(\.\d+)? seconds, taken 100.0% of total time\):/
output.string.should =~ /Top 1 slowest examples \(0(\.\d+)? seconds, 100.0% of total time\):/
end
end
end

0 comments on commit 4d9472e

Please sign in to comment.