Fixed time travel (travel_back again).

This commit is contained in:
Martin Edenhofer 2016-11-30 15:12:16 +01:00
parent 9633d211ed
commit f995ae2326

View file

@ -549,7 +549,6 @@ class TicketOverviewTest < ActiveSupport::TestCase
assert(result[2][:tickets].empty?)
travel_to Time.zone.now + 1.second # because of mysql millitime issues
ticket3 = Ticket.create(
title: 'overview test 3',
group: Group.lookup(name: 'OverviewTest'),
@ -572,6 +571,7 @@ class TicketOverviewTest < ActiveSupport::TestCase
updated_by_id: 1,
created_by_id: 1,
)
travel_back
result = Ticket::Overviews.index(agent1)
assert_equal(result[0][:overview][:id], overview1.id)