postrank-labs/goliath — pull request #118 by sleeper (2011-12-15 22:26:39+00:00)
Title: Fix with_api and logging to file

Current implementation of `:log_file` option in `with_api` is broken:
* it tries to instantiate a `Logger` object (instead of `Log4R::Logger`)
* it does not respect the `Log4r` API

This patch intends to fix this and add a `:log_stdout` as well as `:verbose` option.

Note that some code could be factorized between `runner.rb` and `test_helper.rb` (mainly the setup of logger).

I've also added specs to validate the logging options in `with_api` are working.