File: test_helper.rb

package info (click to toggle)
ruby-text 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 564 kB
  • sloc: ruby: 1,147; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'test/unit'

lib = File.expand_path("../../lib", __FILE__)
$:.unshift lib unless $:.include?(lib)

class Test::Unit::TestCase
  def data_file_path(*path)
    File.join(File.dirname(__FILE__), "data", *path)
  end

  def data_file(*path)
    File.read(data_file_path(*path))
  end
end