Code cleanup.
This commit is contained in:
parent
641a883227
commit
2d032e9a00
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# encoding: utf-8
|
||||
require 'test_helper'
|
||||
|
||||
class IntegrationMoniTest < ActiveSupport::TestCase
|
||||
class IntegrationMonitTest < ActiveSupport::TestCase
|
||||
|
||||
# according
|
||||
# https://mmonit.com/monit/documentation/#ALERT-MESSAGES
|
||||
|
|
|
@ -37,7 +37,7 @@ class TicketLastOwnerUpdateTest < ActiveSupport::TestCase
|
|||
updated_by_id: 1,
|
||||
created_by_id: 1,
|
||||
)
|
||||
assert_equal(ticket.last_owner_update_at.to_s, ticket.updated_at.to_s)
|
||||
assert_in_delta(ticket.last_owner_update_at.to_i, ticket.updated_at.to_i, 1)
|
||||
|
||||
ticket.state = Ticket::State.lookup(name: 'closed')
|
||||
ticket.save!
|
||||
|
|
Loading…
Reference in a new issue