Inheritance laws are different in the constituent parts of the UK. In Scotland a child or spouse who is not a beneficiary of the will can still exercise their legal rights in order to benefit from an estate.
This isn't the case in England & Wales, although dependents can make a claim against an estate and pension death benefits are paid to a spouse.