Sha256: 056b5f7e38ba50d7378c4c44516b0ceeeef901bc14f1e0a2227e2dee5254bdd5

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

require "active_record"
require "test/unit"
require "yaml"
require "logger"

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

# For code coverage, must be required before all application / gem / library code.
unless ENV['NOCOVER']
  require 'coveralls'
  Coveralls.wear!
end

require "flag_shih_tzu"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flag_shih_tzu-0.3.13 test/test_helper.rb
flag_shih_tzu-0.3.12 test/test_helper.rb
flag_shih_tzu-0.3.11 test/test_helper.rb
flag_shih_tzu-0.3.10 test/test_helper.rb
flag_shih_tzu-0.3.9 test/test_helper.rb