Fix dumb mistakes

This commit is contained in:
Michael Miller 2021-05-12 21:40:48 -06:00
parent b8b6b3b609
commit ff084bb3cd
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436

View file

@ -91,10 +91,10 @@ module Spectator
# Yields to run the test code and returns information about the outcome.
# Returns a tuple with the elapsed time and an error if one occurred (otherwise nil).
private def capture : Tuple(Time, Exception?)
private def capture : Tuple(Time::Span, Exception?)
error = nil
elapsed = Time.measure do
error = catch_error { yield }
error = catch { yield }
end
{elapsed, error}
end