Sha256: 8b679d5fc47689bdf46c89f403675ad1da366c98634721dd7f1f3d2999afe9b8
Contents?: true
Size: 714 Bytes
Versions: 36
Compression:
Stored size: 714 Bytes
Contents
# Set the default environment to sqlite3's in_memory database ENV['RAILS_ENV'] ||= 'in_memory' # Load the Rails environment and testing framework require "#{File.dirname(__FILE__)}/app_root/config/environment" require 'test_help' require 'action_view/test_case' # Load additional test classes not done automatically by < Rails 2.2.2 # Undo changes to RAILS_ENV silence_warnings {RAILS_ENV = ENV['RAILS_ENV']} # Run the migrations ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate") # Set default fixture loading properties Test::Unit::TestCase.class_eval do self.use_transactional_fixtures = true self.use_instantiated_fixtures = false self.fixture_path = "#{File.dirname(__FILE__)}/fixtures" end
Version data entries
36 entries across 36 versions & 7 rubygems