fix wonky problem with minitest & rails 4

see the comments in #2517 for more info