Sha256: 923d894980e61fb357751a76fba210e8ea6ef3659295134850bd5e40340e3e5e
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
require 'test/unit' require File.expand_path(File.join(File.dirname(__FILE__), '../../../../config/environment.rb')) require 'rubygems' require 'active_record/fixtures' config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml')) ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log") ActiveRecord::Base.configurations = {'test' => config[ENV['DB'] || 'sqlite3']} ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test']) load(File.dirname(__FILE__) + "/schema.rb") Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/" $:.unshift(Test::Unit::TestCase.fixture_path) class Test::Unit::TestCase self.use_transactional_fixtures = true self.use_instantiated_fixtures = false end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
revo-version_fu-1.0.0 | test/test_helper.rb |