Sha256: a0122b66a458d40f0d09670f695d15f27ef08d428340c85749028e2fc480efa0
Contents?: true
Size: 902 Bytes
Versions: 6
Compression:
Stored size: 902 Bytes
Contents
require "test/unit" require "yaml" require "logger" require "flag_shih_tzu" ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log") ActiveRecord::Migration.verbose = false configs = YAML.load_file(File.dirname(__FILE__) + "/database.yml") if RUBY_PLATFORM == "java" configs['sqlite']['adapter'] = 'jdbcsqlite3' configs['mysql']['adapter'] = 'jdbcmysql' configs['postgresql']['adapter'] = 'jdbcpostgresql' end ActiveRecord::Base.configurations = configs db_name = ENV["DB"] || "sqlite" ActiveRecord::Base.establish_connection(db_name) load(File.dirname(__FILE__) + "/schema.rb") class Test::Unit::TestCase def assert_array_similarity(expected, actual, message=nil) full_message = build_message(message, "<?> expected but was\n<?>.\n", expected, actual) assert_block(full_message) { (expected.size == actual.size) && (expected - actual == []) } end end
Version data entries
6 entries across 6 versions & 1 rubygems