Log_test_example is a project mainly written in Ruby, based on the MIT license.
Example of using StringIO to test log ouput
Example project illustrating how to test log output with RSpec in Ruby using the StringIO class.
Written to go along with a blog post: http://blog.joshualindsey.net/2011/06/30/testing-log-output-in-rspec.
Clone the project from here, or fork it and clone that.
$ gem install bundler
$ bundle install
$ rake spec
Copyright (c) 2011 Josh Lindsey. See LICENSE for details.