trunkify; merge polymorphs
[has_many_polymorphs.git] / test / test_helper.rb
blob613a3f8c2315069b184a8c811accc904042cd807
2 begin
3   require 'rubygems'
4   require 'ruby-debug' 
5   Debugger.start
6 rescue Object
7 end
9 # load the applicaiton's test helper
10 begin
11   require File.dirname(__FILE__) + '/../../../../test/test_helper' 
12 rescue LoadError
13   require '~/projects/miscellaneous/cookbook/test/test_helper'
14 end
16 WORKING_DIR = File.dirname(__FILE__)
18 Inflector.inflections {|i| i.irregular 'fish', 'fish' }
20 $LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path = WORKING_DIR + "/fixtures")
21 $LOAD_PATH.unshift(WORKING_DIR + "/models")
22 $LOAD_PATH.unshift(WORKING_DIR + "/modules")
24 class Test::Unit::TestCase
25   self.use_transactional_fixtures = !(ActiveRecord::Base.connection.is_a? ActiveRecord::ConnectionAdapters::MysqlAdapter rescue false)
26   self.use_instantiated_fixtures  = false
27 end
29 # test schema
30 load(File.dirname(__FILE__) + "/schema.rb")