blob: 1b33579206973753835bf249c71b7ae030cdcf02 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$:.unshift(File.dirname(__FILE__) + '/../lib')#.unshift(File.dirname(__FILE__))
# Make rubygems available for testing if possible
begin require('rubygems'); rescue LoadError; end
begin require('dev-utils/debug'); rescue LoadError; end
require 'test/unit'
require 'active_record'
require 'active_record/fixtures'
require 'connection'
class Test::Unit::TestCase #:nodoc:
def create_fixtures(*table_names)
if block_given?
Fixtures.create_fixtures(File.dirname(__FILE__) + "/fixtures/", table_names) { yield }
else
Fixtures.create_fixtures(File.dirname(__FILE__) + "/fixtures/", table_names)
end
end
end
Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/"
|