Time variable used to be created with users timezone, it has to be UTC in order to pass the test

This commit is contained in:
Natalia 2019-05-06 12:18:07 -05:00 committed by Robin Ward
parent 32e0c4997c
commit 1b7be1500f
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ RSpec.describe SearchLog, type: :model do
describe ".term_details" do describe ".term_details" do
it "should only use the date for the period" do it "should only use the date for the period" do
time = Time.new(2019, 5, 23, 18, 15, 30) time = Time.utc(2019, 5, 23, 18, 15, 30)
freeze_time(time) freeze_time(time)
search_log = Fabricate(:search_log, created_at: time - 1.hour) search_log = Fabricate(:search_log, created_at: time - 1.hour)