提交 4cf4ea50 编写于 作者: N Neeraj Singh

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.
上级 bffda1e6
......@@ -191,6 +191,7 @@ def test_reassigning_has_one_through
end
def test_preloading_has_one_through_on_belongs_to
MemberDetail.delete_all
assert_not_nil @member.member_type
@organization = organizations(:nsa)
@member_detail = MemberDetail.new
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册