use bundler to install the gems needed to run the tests
separate off an error message function that doesn't need to do the database-specific quoting