Fix broken spec on ruby 2.0

hi @samuelkadolph

I tried `rake test` on Ruby 2.0 then
```sh
  1) Error:
test_0006_logs a warning when a query is being retried that describes what it is doing(ActiveRecord::Retry):
TypeError: no implicit conversion of Regexp into String
```

fix it.