> When would this be an advantage over some sort of named test?
Never. "Line number" is very obscure and prone to breaking. "I just added a comment at the top of the file... Whoops! Broke all the tests."
To quote the Zen Of Python—"explicit is better than implicit".
The article is a bit old so I wonder if that is still a common Ruby practice (if it ever was).