Sha256: 0d36dcd5784c4712063a2a91bc85a8c461bd971696fbdf029c1514e264d369ae
Contents?: true
Size: 1018 Bytes
Versions: 13
Compression:
Stored size: 1018 Bytes
Contents
module ARTest module SQLServer extend self def root_sqlserver File.expand_path File.join(File.dirname(__FILE__), '..', '..') end def test_root_sqlserver File.join root_sqlserver, 'test' end def root_activerecord Gem.loaded_specs['activerecord'].full_gem_path end def test_root_activerecord File.join root_activerecord, 'test' end def test_load_paths ar_lib = File.join root_activerecord, 'lib' ar_test = File.join root_activerecord, 'test' ['lib', 'test', ar_lib, ar_test] end def add_to_load_paths! test_load_paths.each { |p| $LOAD_PATH.unshift(p) unless $LOAD_PATH.include?(p) } end def migrations_root File.join test_root_sqlserver, 'migrations' end def arconfig_file File.join test_root_sqlserver, 'config.yml' end def arconfig_file_env! ENV['ARCONFIG'] = arconfig_file end end end ARTest::SQLServer.add_to_load_paths! ARTest::SQLServer.arconfig_file_env!
Version data entries
13 entries across 13 versions & 1 rubygems