Permalink
Browse files

Works around failures of the test suite under Rubinius (in rspec-mocks)

  • Loading branch information...
1 parent 96e3d13 commit 582a0a89e785151d207559996c37695ec1393215 @alindeman alindeman committed Oct 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/core/example.rb
@@ -292,7 +292,7 @@ def finish(reporter)
def record_finished(status, results={})
finished_at = RSpec::Core::Time.now
- record results.merge(:status => status, :finished_at => finished_at, :run_time => (finished_at - execution_result[:started_at]))
+ record results.merge(:status => status, :finished_at => finished_at, :run_time => (finished_at - execution_result[:started_at]).to_f)
end
def run_before_each

0 comments on commit 582a0a8

Please sign in to comment.