A will gifting property to a spouse is void upon divorce. Until the time of divorce, however the will is valid. It is important for separating couples to change their wills following an adjustment of property interests.
See Family Law case examples on the Family Law blogsite
Download your Free Divorce Advice ebook Parting Ways: Divorce and Separation: A Guide to Your Rights & Responsibilities