Code cleanup.

This commit is contained in:
Martin Edenhofer 2017-11-03 08:54:13 +01:00
parent 641a883227
commit 2d032e9a00
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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!