Permalink
Browse files

Fixed failed test under 1.8.7 as map.keys order in indeterminable

  • Loading branch information...
rocky-jaiswal committed Sep 28, 2011
1 parent 771b76a commit aefc40324df3c98a278f05eee4980845fbeedbef
@@ -651,7 +651,7 @@ def test_habtm_respects_select
end
def test_habtm_selects_all_columns_by_default
- assert_equal Project.column_names, developers(:david).projects.first.attributes.keys
+ assert_equal Project.column_names.sort, developers(:david).projects.first.attributes.keys.sort
end
def test_habtm_respects_select_query_method
@@ -486,7 +486,7 @@ def test_find_scoped_grouped_having
end
def test_default_select
- assert_equal Comment.column_names, posts(:welcome).comments.first.attributes.keys
+ assert_equal Comment.column_names.sort, posts(:welcome).comments.first.attributes.keys.sort
end
def test_select_query_method

0 comments on commit aefc403

Please sign in to comment.