Fix failing spec with less DRY code just for Rails 3.x