Browse Source

Code cleanup.

Martin Edenhofer 7 years ago
parent
commit
2d032e9a00
2 changed files with 2 additions and 2 deletions
  1. 1 1
      test/unit/integration_monit_test.rb
  2. 1 1
      test/unit/ticket_last_owner_update_test.rb

+ 1 - 1
test/unit/integration_monit_test.rb

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

+ 1 - 1
test/unit/ticket_last_owner_update_test.rb

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