Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zonebie should be able to iterate over every time zone #2

Open
ghost opened this issue Mar 16, 2012 · 1 comment
Open

Zonebie should be able to iterate over every time zone #2

ghost opened this issue Mar 16, 2012 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 16, 2012

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
@bcherny
Copy link

bcherny commented Jan 10, 2016

that seems like a much better approach!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant