geemus/formatador — Issue #5: uninitialized constant StringIO while running tests
Author: bkabrda
Created: 2011-10-13 06:38:19+00:00
State: open

Hi,
I am not sure if I am running tests correctly, but I keep getting this error:

Formatador
#display_table([{:a => 1}, {:a => 2}]) - returns " +---+\n | \e[1ma\e[0m |\n +---+\n | 1 |\n +---+\n | 2 |\n +---+\n"
uninitialized constant StringIO (NameError)
./tests/tests_helper.rb:9:in `capture_stdout'
./tests/table_tests.rb:14
(...)

A simple fix is to add "requires 'stringio'" to tests_helper.rb. Am I missing something, or is this require needed for the tests to work properly?

Thank you very much,
Bohuslav Kabrda.