capture_stdout
Adds Kernel.capture_stdout(&block)
Useful e.g. for testing command line tools
string = 'yeah' output = capture_stdout { print(string) } assert_equal string, output
Installation
$ gem install capture_stdout
Project
Adds Kernel.capture_stdout(&block)
Useful e.g. for testing command line tools
string = 'yeah' output = capture_stdout { print(string) } assert_equal string, output
$ gem install capture_stdout