From 16330e7c4df5c7e90c9e350e8a9d4141dcdb1514 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 29 Oct 2015 11:12:17 +0100 Subject: [PATCH] Fixed result order. --- test/integration/report_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/report_test.rb b/test/integration/report_test.rb index d9c6b40ff..04794f2ea 100644 --- a/test/integration/report_test.rb +++ b/test/integration/report_test.rb @@ -735,13 +735,13 @@ class ReportTest < ActiveSupport::TestCase ) assert(result) puts "r #{result.inspect}" - assert_equal(ticket1.id, result[:ticket_ids][6].to_i) - assert_equal(ticket2.id, result[:ticket_ids][5].to_i) - assert_equal(ticket3.id, result[:ticket_ids][4].to_i) - assert_equal(ticket4.id, result[:ticket_ids][2].to_i) - assert_equal(ticket5.id, result[:ticket_ids][3].to_i) - assert_equal(ticket6.id, result[:ticket_ids][1].to_i) assert_equal(ticket7.id, result[:ticket_ids][0].to_i) + assert_equal(ticket6.id, result[:ticket_ids][1].to_i) + assert_equal(ticket5.id, result[:ticket_ids][2].to_i) + assert_equal(ticket3.id, result[:ticket_ids][3].to_i) + assert_equal(ticket4.id, result[:ticket_ids][4].to_i) + assert_equal(ticket2.id, result[:ticket_ids][5].to_i) + assert_equal(ticket1.id, result[:ticket_ids][6].to_i) assert_equal(nil, result[:ticket_ids][7]) end