Sha256: 81f958cf744d590c9662fba7608cb902f981909821f9f648026922cc63d3a210
Contents?: true
Size: 506 Bytes
Versions: 9
Compression:
Stored size: 506 Bytes
Contents
$TREEVISITOR_HOME = File.expand_path( File.join( File.dirname( __FILE__), "..", ".." ) ) lib_dir = File.join($TREEVISITOR_HOME, "lib" ) test_dir = File.join($TREEVISITOR_HOME, "test" ) $:.unshift lib_dir unless $:.include?(lib_dir) $:.unshift test_dir unless $:.include?(test_dir) require 'test/unit' require "stringio" def with_stdout_captured old_stdout = $stdout out = StringIO.new $stdout = out begin yield ensure $stdout = old_stdout end out.string end
Version data entries
9 entries across 9 versions & 1 rubygems