Guest User

Untitled

a guest
May 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def assert_time_equal(t1, t2, message = nil)
  2. t1_no_usec = Time.utc t1.year, t1.month, t1.day, t1.hour, t1.min, t1.sec, 0
  3. t2_no_usec = Time.utc t2.year, t2.month, t2.day, t2.hour, t2.min, t2.sec, 0
  4. assert_equal t1_no_usec, t2_no_usec, message
  5. end
Add Comment
Please, Sign In to add comment