Sha256: b24a68cbac277c43d98e60fd6811274201574f403baa8c4e7ebe3ff241aa36ad

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

# -*- coding: utf-8 -*-

require "stringio"
require 'ostruct'

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

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

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

2 entries across 2 versions & 1 rubygems

Version Path
dircat-0.1.7 spec/spec_helper.rb
dircat-0.1.6 spec/spec_helper.rb