Sha256: c4c56b8c1620c82ed1ba69214a690873b5a618d91f80a1931fcb3a3a7b37cb82
Contents?: true
Size: 847 Bytes
Versions: 1
Compression:
Stored size: 847 Bytes
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') $:.unshift(File.dirname(__FILE__)) require 'test/unit' require 'pp' require 'etl' require 'shoulda' require 'flexmock/test_unit' raise "Missing required DB environment variable" unless ENV['DB'] database_yml = File.dirname(__FILE__) + '/config/database.yml' ETL::Engine.init(:config => database_yml) ETL::Engine.logger = Logger.new(STDOUT) # ETL::Engine.logger.level = Logger::DEBUG ETL::Engine.logger.level = Logger::FATAL ActiveRecord::Base.establish_connection :operational_database ETL::Execution::Job.delete_all require 'mocks/mock_source' require 'mocks/mock_destination' # shortcut to launch a ctl file def process(file) Engine.process(File.join(File.dirname(__FILE__), file)) end puts "ActiveRecord::VERSION = #{ActiveRecord::VERSION::STRING}" class Person < ActiveRecord::Base end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activewarehouse-etl-1.0.0.rc1 | test/test_helper.rb |