Restructuring directories.
This commit is contained in:
parent
5c287f1042
commit
4fcfa7fd14
|
@ -14,7 +14,7 @@ adapter = options.adapter
|
||||||
|
|
||||||
# load the library
|
# load the library
|
||||||
LIB_DIR = this_dir.join("../lib")
|
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 = Logger.new("log/test.log")
|
||||||
ActiveRecord::Base.logger.level = Logger::DEBUG
|
ActiveRecord::Base.logger.level = Logger::DEBUG
|
||||||
|
|
|
@ -11,5 +11,5 @@ module ActiveRecord::Extensions
|
||||||
end
|
end
|
||||||
|
|
||||||
this_dir = Pathname.new File.dirname(__FILE__)
|
this_dir = Pathname.new File.dirname(__FILE__)
|
||||||
require this_dir.join("../import")
|
require this_dir.join("import")
|
||||||
require this_dir.join("../active_record/adapters/abstract_adapter")
|
require this_dir.join("active_record/adapters/abstract_adapter")
|
326170
log/test.log
Normal file
326170
log/test.log
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
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
|
describe "#import with :on_duplicate_key_update option (mysql specific functionality)" do
|
||||||
extend ActiveSupport::TestCase::MySQLAssertions
|
extend ActiveSupport::TestCase::MySQLAssertions
|
||||||
|
|
|
@ -90,7 +90,7 @@ class MyApplication < Rails::Application ; end
|
||||||
adapter = ENV["ARE_DB"] || "sqlite3"
|
adapter = ENV["ARE_DB"] || "sqlite3"
|
||||||
|
|
||||||
# load the library
|
# load the library
|
||||||
require "ar-extensions/import/#{adapter}"
|
require "activerecord-import/#{adapter}"
|
||||||
|
|
||||||
ActiveRecord::Base.logger = Logger.new("log/test.log")
|
ActiveRecord::Base.logger = Logger.new("log/test.log")
|
||||||
ActiveRecord::Base.logger.level = Logger::DEBUG
|
ActiveRecord::Base.logger.level = Logger::DEBUG
|
||||||
|
|
Loading…
Reference in a new issue