Skip to content
Browse files

JRuby is too fast!! (need to get an execution result time)

  • Loading branch information...
1 parent a777f09 commit 343c9e23f1d906f3556a9f87bf73def285d8ae98 @justinko justinko committed Apr 18, 2012
View
1 lib/rspec/core/formatters/base_text_formatter.rb
@@ -57,7 +57,6 @@ def dump_profile
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, #{'%.1f' % ((slows / total) * 100)}% of total time):\n"
sorted_examples.each do |example|
View
2 spec/rspec/core/formatters/base_text_formatter_spec.rb
@@ -322,7 +322,7 @@ def run_all_and_dump_pending
describe "#dump_profile" do
before do
group = RSpec::Core::ExampleGroup.describe("group") do
- example("example")
+ example("example") { true.should be_true }
end
group.run(double('reporter').as_null_object)

0 comments on commit 343c9e2

Please sign in to comment.
Something went wrong with that request. Please try again.