test/helper.rb in nanoc3-3.2.1 vs test/helper.rb in nanoc3-3.2.2

- old
+ new

@@ -167,5 +167,13 @@ assert remaining.empty?, 'Expected %s to contain all the elements of %s' % [actual.inspect, expected.inspect] end end + +# A more precise inspect method for Time improves assert failure messages. +# +class Time + def inspect + strftime("%a %b %d %H:%M:%S.#{"%06d" % usec} %Z %Y") + end +end