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
RSpec Documentation - metadata
Using RSpec metadata (rossta)
Commentscomments powered by Disqus