Sha256: d857ef6fdaace390ea4e539c4428fac8b7e2c34897bb8827f7607ad6b3a9049d
Contents?: true
Size: 852 Bytes
Versions: 3
Compression:
Stored size: 852 Bytes
Contents
require 'rubygems' require 'test/unit' case ENV['RAILS_VERSION'] when '3.0' then gem 'activerecord', '~> 3.0.0' gem 'activesupport', '~> 3.0.0' else gem 'activerecord', '~> 2.3.0' gem 'activesupport', '~> 2.3.0' end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
has_translations-0.3.3 | test/test_helper.rb |
has_translations-0.3.2 | test/test_helper.rb |
has_translations-0.3.1 | test/test_helper.rb |