Restructuring directories.

This commit is contained in:
Zach Dennis 2010-06-26 15:37:23 -04:00
parent 5c287f1042
commit 4fcfa7fd14
12 changed files with 326175 additions and 5 deletions

View file

@ -14,7 +14,7 @@ adapter = options.adapter
# load the library
LIB_DIR = this_dir.join("../lib")
require LIB_DIR.join("ar-extensions/import/#{adapter}")
require LIB_DIR.join("activerecord-import/#{adapter}")
ActiveRecord::Base.logger = Logger.new("log/test.log")
ActiveRecord::Base.logger.level = Logger::DEBUG

View file

@ -11,5 +11,5 @@ module ActiveRecord::Extensions
end
this_dir = Pathname.new File.dirname(__FILE__)
require this_dir.join("../import")
require this_dir.join("../active_record/adapters/abstract_adapter")
require this_dir.join("import")
require this_dir.join("active_record/adapters/abstract_adapter")

326170
log/test.log Normal file

File diff suppressed because one or more lines are too long

BIN
test.db Normal file

Binary file not shown.

View file

@ -1,5 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
require "ar-extensions/import/mysql"
require "activerecord-import/mysql"
describe "#import with :on_duplicate_key_update option (mysql specific functionality)" do
extend ActiveSupport::TestCase::MySQLAssertions

View file

@ -90,7 +90,7 @@ class MyApplication < Rails::Application ; end
adapter = ENV["ARE_DB"] || "sqlite3"
# load the library
require "ar-extensions/import/#{adapter}"
require "activerecord-import/#{adapter}"
ActiveRecord::Base.logger = Logger.new("log/test.log")
ActiveRecord::Base.logger.level = Logger::DEBUG