Don’t set Time.zone = 'Pacific Time (US & Canada)'
. It will change the Time
Zone for the rest of your tests.
Instead, you can implement a RSpec callback on that sets the timezone only for
the specific test.
Then you can simply set the tz
metadata with the timezone you want to use on
your test.
References:
RSpec Documentation - metadata
Using RSpec metadata (rossta)
Comments
comments powered by Disqus