Sha256: 0c1abf44267c806540d67c41470f6c257c76f53cd9dc8da7a29a39dac974fa39
Contents?: true
Size: 631 Bytes
Versions: 30
Compression:
Stored size: 631 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' # 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 ActiveSupport::TestCase.class_eval do self.use_transactional_fixtures = true self.use_instantiated_fixtures = false self.fixture_path = "#{File.dirname(__FILE__)}/fixtures" fixtures :all end
Version data entries
30 entries across 30 versions & 3 rubygems