Sha256: 13d9ceb12096aef3fa7ab4542086ab7455263a94a56ed44ae5b4d078f2d7bb5a

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 Bytes

Contents

require 'minitest/spec'

require File.expand_path('../../lib/treet', __FILE__)

require "tmpdir"
require "fileutils"

$topdir ||= Dir.mktmpdir("treet-tests-")

def jsonfile(filename)
  "#{File.dirname(__FILE__)}/json/#{filename}.json"
end

def load_json(filename)
  JSON.load(File.open(jsonfile(filename)))
end

MiniTest::Unit.after_tests do
  $stderr.puts "Erasing #{$topdir}"
  FileUtils.rm_rf $topdir
  $topdir = nil
end

# MUST PUT THIS AT *END* OF FILE OR CLEANUP WILL HAPPEN BEFORE TESTS ARE RUN!
require 'minitest/autorun'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
treet-0.18.0 spec/test_helper.rb
treet-0.17.1 spec/test_helper.rb
treet-0.15.0 spec/test_helper.rb
treet-0.14.1 spec/test_helper.rb
treet-0.14.0 spec/test_helper.rb
treet-0.13.1 spec/test_helper.rb
treet-0.11.0 spec/test_helper.rb
treet-0.10.3 spec/test_helper.rb
treet-0.10.2 spec/test_helper.rb