Sha256: ad585f75d5164f39af7202abc438b6b10e9ffe16410e557eb14bf7839b492ff3
Contents?: true
Size: 997 Bytes
Versions: 5
Compression:
Stored size: 997 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 # Load models and controllers from lib/app # %w{ models controllers }.each do |dir| # path = File.join(File.dirname(__FILE__), 'app', dir) # $LOAD_PATH << path # ActiveSupport::Dependencies.load_paths << path # ActiveSupport::Dependencies.load_once_paths.delete(path) # end
Version data entries
5 entries across 5 versions & 1 rubygems