File: test_helper.rb

package info (click to toggle)
ruby-bindex 0.8.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: ruby: 295; java: 193; ansic: 62; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 441 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$LOAD_PATH << File.expand_path('../lib', __FILE__)

require 'minitest/autorun'
require 'skiptrace'

current_directory = File.dirname(File.expand_path(__FILE__))

# Fixtures are plain classes that respond to #call.
Dir["#{current_directory}/fixtures/**/*.rb"].each do |fixture|
  require fixture
end

module Skiptrace
  class Test < Minitest::Test
    def self.test(name, &block)
      define_method("test_#{name}", &block)
    end
  end
end