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

Version Path
gf-treevisitor-0.0.10 test/treevisitor/test_helper.rb
gf-treevisitor-0.0.11 test/treevisitor/test_helper.rb
gf-treevisitor-0.0.12 test/treevisitor/test_helper.rb
gf-treevisitor-0.0.13 test/treevisitor/test_helper.rb
gf-treevisitor-0.0.15 test/treevisitor/test_helper.rb
gf-treevisitor-0.0.16 test/treevisitor/test_helper.rb
gf-treevisitor-0.0.18 test/treevisitor/test_helper.rb
gf-treevisitor-0.0.19 test/treevisitor/test_helper.rb
gf-treevisitor-0.0.8 test/treevisitor/test_helper.rb