Fixed time travel (travel_back again).
This commit is contained in:
parent
9633d211ed
commit
f995ae2326
1 changed files with 1 additions and 1 deletions
|
@ -549,7 +549,6 @@ class TicketOverviewTest < ActiveSupport::TestCase
|
||||||
assert(result[2][:tickets].empty?)
|
assert(result[2][:tickets].empty?)
|
||||||
|
|
||||||
travel_to Time.zone.now + 1.second # because of mysql millitime issues
|
travel_to Time.zone.now + 1.second # because of mysql millitime issues
|
||||||
|
|
||||||
ticket3 = Ticket.create(
|
ticket3 = Ticket.create(
|
||||||
title: 'overview test 3',
|
title: 'overview test 3',
|
||||||
group: Group.lookup(name: 'OverviewTest'),
|
group: Group.lookup(name: 'OverviewTest'),
|
||||||
|
@ -572,6 +571,7 @@ class TicketOverviewTest < ActiveSupport::TestCase
|
||||||
updated_by_id: 1,
|
updated_by_id: 1,
|
||||||
created_by_id: 1,
|
created_by_id: 1,
|
||||||
)
|
)
|
||||||
|
travel_back
|
||||||
|
|
||||||
result = Ticket::Overviews.index(agent1)
|
result = Ticket::Overviews.index(agent1)
|
||||||
assert_equal(result[0][:overview][:id], overview1.id)
|
assert_equal(result[0][:overview][:id], overview1.id)
|
||||||
|
|
Loading…
Reference in a new issue