just to want to increase visiblity of this patch:
In short, when you have a test failure, there should be a relevant
Rails log printed on standard output. You can opt-out this via ENV
variable if you don't like this, but I find this very useful
particularly on our Jenkins when debugging tests.