Browse files

make test not depend on order

`NestedThroughAssociationsTest` adds records to `member_details` table.
When test performs `@member_details[0]` then the order of record
is not guaranteed. Hence it is best to start with a clean slate by
deleting unwanted records.
  • Loading branch information...
1 parent bffda1e commit 4cf4ea506def9a3e36cc90a2b0e073cbb8fc43df Neeraj Singh committed Jul 28, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/test/cases/associations/has_one_through_associations_test.rb
@@ -191,6 +191,7 @@ def test_reassigning_has_one_through
def test_preloading_has_one_through_on_belongs_to
+ MemberDetail.delete_all
assert_not_nil @member.member_type
@organization = organizations(:nsa)
@member_detail =

0 comments on commit 4cf4ea5

Please sign in to comment.