Commit 3970e19f authored by Sean Arnold's avatar Sean Arnold

Update ee/spec/services with correct time parsing

parent 6a88a222
......@@ -14,7 +14,7 @@ describe EE::AuditEvents::BulkInsertService do
EE::AuditEvents::RepositoryPushAuditEventService.new(user, entity, target_ref, from, to)
end
end
let(:timestamp) { Time.new(2019, 10, 10) }
let(:timestamp) { Time.new.in_time_zone(2019, 10, 10) }
let(:attrs) do
{
author_id: user.id,
......
......@@ -12,7 +12,7 @@ describe EE::AuditEvents::RepositoryPushAuditEventService do
let(:service) { described_class.new(user, entity, target_ref, from, to) }
describe '#attributes' do
let(:timestamp) { Time.new(2019, 10, 10) }
let(:timestamp) { Time.new.in_time_zone(2019, 10, 10) }
let(:attrs) do
{
author_id: user.id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment