From c1357aa3e579e8cb27d2c7ae07c44e54f03e8f1e Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 29 Oct 2015 07:22:08 +0100 Subject: [PATCH] Improved test. --- test/integration/report_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/integration/report_test.rb b/test/integration/report_test.rb index 5d4eb1249..eed983516 100644 --- a/test/integration/report_test.rb +++ b/test/integration/report_test.rb @@ -734,13 +734,13 @@ class ReportTest < ActiveSupport::TestCase params: { field: 'created_at' }, ) assert(result) - assert_equal(ticket1.id, result[:ticket_ids][0]) - assert_equal(ticket2.id, result[:ticket_ids][1]) - assert_equal(ticket3.id, result[:ticket_ids][2]) - assert_equal(ticket4.id, result[:ticket_ids][3]) - assert_equal(ticket5.id, result[:ticket_ids][4]) - assert_equal(ticket6.id, result[:ticket_ids][5]) - assert_equal(ticket7.id, result[:ticket_ids][6]) + assert_equal(ticket1.id, result[:ticket_ids][0].to_i) + assert_equal(ticket2.id, result[:ticket_ids][1].to_i) + assert_equal(ticket3.id, result[:ticket_ids][2].to_i) + assert_equal(ticket4.id, result[:ticket_ids][3].to_i) + assert_equal(ticket5.id, result[:ticket_ids][4].to_i) + assert_equal(ticket6.id, result[:ticket_ids][5].to_i) + assert_equal(ticket7.id, result[:ticket_ids][6].to_i) assert_equal(nil, result[:ticket_ids][7]) end