zonebie icon indicating copy to clipboard operation
zonebie copied to clipboard

Zonebie should be able to iterate over every time zone

Open ghost opened this issue 13 years ago • 1 comments

I am hesitant to use randomness in my tests, because sometimes a test would pass and then the next time I run it it would fail. If the test is truly failing because of time zone differences, that randomness would make it really hard to debug!

How about we add a way to iterate over every time zone? Something like this:

Zonebie.each_time_zone do |time_zone|
  #iterates through each ActiveSupport::TimeZone
  assert Something_in_the_db_is_always_in_UTC?
end

ghost avatar Mar 16 '12 14:03 ghost

that seems like a much better approach!

bcherny avatar Jan 10 '16 03:01 bcherny