Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/svenfuchs/capture_stdout

Adds Kernel.capture_stdout(&block). Useful e.g. for testing command line tools
https://github.com/svenfuchs/capture_stdout

Last synced: about 2 months ago
JSON representation

Adds Kernel.capture_stdout(&block). Useful e.g. for testing command line tools

Awesome Lists containing this project

README

        

h1. 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

h2. Installation


$ gem install capture_stdout