Sha256: 491884e11bd551a50c51ad0e985097003ef2855ce9f77a5b12ad9a1b10a14439
Contents?: true
Size: 546 Bytes
Versions: 6
Compression:
Stored size: 546 Bytes
Contents
$:.unshift File.expand_path('..', __FILE__) $:.unshift File.expand_path('../../lib', __FILE__) ROOT_PATH = File.expand_path('../..', __FILE__) require 'rubyc' require 'minitest/spec' require 'minitest/autorun' require 'rubyc/colorize_stack' module SpecHelper def local_io(in_str) old_stdin, old_stdout = $stdin, $stdout $stdin = StringIO.new(in_str) $stdout = StringIO.new yield out_str = $stdout.string $stdin, $stdout = old_stdin, old_stdout out_str end end MiniTest::Unit.output.extend MiniTest::ColorizeStack
Version data entries
6 entries across 6 versions & 1 rubygems