Home > log_test_example

log_test_example

Log_test_example is a project mainly written in Ruby, based on the MIT license.

Example of using StringIO to test log ouput

Log Testing Example

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.

Setup

Clone the project from here, or fork it and clone that.

$ gem install bundler
$ bundle install
$ rake spec

Copyright

Copyright (c) 2011 Josh Lindsey. See LICENSE for details.

Previous:oic