Article 1094 of the French Civil Code
The spouse, either by marriage contract or during the marriage, may, in the event that he leaves no children or descendants, dispose in favour of the other spouse in property, of all that he could dispose of in favour of a foreigner.