Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def assert_time_equal(t1, t2, message = nil)
- t1_no_usec = Time.utc t1.year, t1.month, t1.day, t1.hour, t1.min, t1.sec, 0
- t2_no_usec = Time.utc t2.year, t2.month, t2.day, t2.hour, t2.min, t2.sec, 0
- assert_equal t1_no_usec, t2_no_usec, message
- end
Add Comment
Please, Sign In to add comment