Use Time::Span.zero instead of constructor with 0 nanoseconds

This commit is contained in:
Michael Miller 2018-09-15 14:10:59 -06:00
parent caeab6c338
commit fd547c5814
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ module Spectator
end end
def initialize(@example) def initialize(@example)
super(@example, Time::Span.new(nanoseconds: 0)) super(@example, Time::Span.zero)
end end
end end
end end

View file

@ -47,7 +47,7 @@ module Spectator
protected abstract def run_instance protected abstract def run_instance
private class ResultCapture private class ResultCapture
property elapsed = Time::Span.new(nanoseconds: 0) property elapsed = Time::Span.zero
property error : Exception? property error : Exception?
end end
end end