Permalink
Browse files

Ensure array order for repeatable success of tests

  • Loading branch information...
1 parent 277815e commit 33260d885d409fec47661fb4be0eccc8c77d0c4a @meineerde meineerde committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/unit/project_test.rb
@@ -82,7 +82,7 @@ def test_default_attributes
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

0 comments on commit 33260d8

Please sign in to comment.