Sha256: 32b8646a8057143647c7802ccba0b3d13531f55409e81348d8035d8589f426c2

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

require 'rubygems'
require 'test/unit'

gem 'activerecord', '~> 2.3'
gem 'i18n', '~> 0.4'

require 'active_record'
require 'logger'

require 'has_translations'

#ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Base.logger = nil
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")

def setup_db
  ActiveRecord::Migration.verbose = false
  load "schema.rb"
end

def teardown_db
  ActiveRecord::Base.connection.tables.each do |table|
    ActiveRecord::Base.connection.drop_table(table)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_translations-0.3.0 test/test_helper.rb