Sha256: 399de6998f0c98bfd0ae3435cd8f7f785718ae5658290d0daa373c771fbbc55d
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
require 'rubygems' require 'test/unit' rails_version = "~> #{ENV['RAILS_VERSION'] || '3.1.0'}" gem 'activerecord', rails_version gem 'activesupport', rails_version require 'active_record' require 'logger' require 'has_translations' begin I18n.available_locales = :ru, :en, :es rescue p "[WARNING]: This test should have the I18n.available_locales= method, which were included in versions ~> 0.3.0" end #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.5 | test/test_helper.rb |