Sha256: d6b933fbe401030f9c51856029c2460346998a1e7a8ede12e0a66ecd2438d345
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 Bytes
Contents
# coding: utf-8 gem 'minitest' # for 1.9.3 require 'minitest/autorun' require 'minitest/spec' require 'minitest/unit' require 'mocha/mini_test' require 'digest/sha1' require 'pathname' require 'chunky_png' require 'thinreports' require 'schema_helper' module Thinreports::TestHelper ROOT = Pathname.new(File.expand_path('..', __FILE__)) include Thinreports::SchemaHelper def assert_deprecated(&block) _out, err = capture_io { block.call } assert err.to_s.include?('[DEPRECATION]') end def data_file(*paths) ROOT.join('data', *paths).to_s end def read_data_file(*paths) File.read(data_file(*paths)) end def temp_path ROOT.join('tmp') end def teardown super FileUtils.rm Dir.glob(temp_path.join('*')) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.9.1 | test/test_helper.rb |
thinreports-0.9.0 | test/test_helper.rb |