Sha256: 3f252d5117360f9090ccfdc07f07a8eaeb3302046ac1c9f4e5dedfa0c6dc1fac
Contents?: true
Size: 534 Bytes
Versions: 3
Compression:
Stored size: 534 Bytes
Contents
# -*- coding: utf-8 -*- # # std lib # require "stringio" $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'tree_rb' require 'tree_rb_cli' include TreeRb FIXTURES = File.expand_path( File.join( File.dirname(__FILE__), "fixtures" ) ) def with_output_captured old_stdout, old_stderr = $stdout, $stderr out = StringIO.new err = StringIO.new $stdout = out $stderr = err begin yield ensure $stdout = old_stdout $stderr = old_stderr end { :stdout => out.string, :stderr => err.string } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tree.rb-0.3.5 | spec/spec_helper.rb |
tree.rb-0.3.4 | spec/spec_helper.rb |
tree.rb-0.3.3 | spec/spec_helper.rb |