Sha256: f2549d318615ff5d53c0ef2f23ce2cc71ae55a0718a5379662d4e7ebd01a2ca0

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

# -*- coding: utf-8 -*-
require "stringio"
require 'ostruct'
require 'tmpdir'

$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'dircat'
include DirCat

TEST_DIR = File.expand_path(File.join(File.dirname(__FILE__), "fixtures"))

def capture_out
  old_stdout, old_stderr = $stdout, $stderr
  out, err = StringIO.new, StringIO.new
  $stdout, $stderr = out, err
  begin
    yield
  ensure
    $stdout, $stderr = old_stdout, old_stderr
  end
  OpenStruct.new(:out => out.string, :err => err.string)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dircat-0.1.12 spec/spec_helper.rb
dircat-0.1.11 spec/spec_helper.rb