A Question for Romance Readers, Writers and Possibly Lawyers

As we all know the arrnged marriage is a common trope in romance. I’ve read stories where someone had to get married to inherit money, or were ordered to marry in a will. Recently I read an article that said you can’t compel someone to get married in a will, but damned if I can find the article. I thought it might be a post on one of the romance blogs, but no luck there, either. Does anyone know what I’m talking about? Holla.