spec icon indicating copy to clipboard operation
spec copied to clipboard

Improve specs for Time#gmtime/Time#utc

Open herwinw opened this issue 1 year ago • 1 comments

The Time comparison does cancel out the timezone differences, so even if you did not call the method, the spec would still pass.

herwinw avatar Oct 18 '24 16:10 herwinw

Todo: validate/extend checks for Time#== (or Time#<=>)

herwinw avatar Oct 18 '24 16:10 herwinw

The second commit adds some extra checks for Time#<=>. I picked CET and BRT pretty much at random for the time zones other than UTC, I wanted something before UTC and something after UTC, and these just happened to be the ones I knew from memory.

herwinw avatar Oct 25 '24 16:10 herwinw