Fixed result order.

This commit is contained in:
Martin Edenhofer 2015-10-29 10:32:48 +01:00
parent bb630708c4
commit 6f1d783c8b

View file

@ -735,13 +735,13 @@ class ReportTest < ActiveSupport::TestCase
)
assert(result)
puts "r #{result.inspect}"
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(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(nil, result[:ticket_ids][7])
end