Ensure array order for repeatable success of tests

This commit is contained in:
Holger Just 2012-04-11 23:15:33 +02:00
parent 277815ec96
commit 33260d885d
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class ProjectTest < ActiveSupport::TestCase
end
assert_equal Tracker.all, Project.new.trackers
assert_equal Tracker.find(1, 3), Project.new(:tracker_ids => [1, 3]).trackers
assert_equal Tracker.find(1, 3).sort_by(&:id), Project.new(:tracker_ids => [1, 3]).trackers.sort_by(&:id)
end
def test_update