Sha256: d72a66a7f68080244e37c9aa16d0abdd833fe3966727f6f31a6e9c9d38e355a2
Contents?: true
Size: 633 Bytes
Versions: 29
Compression:
Stored size: 633 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
29 entries across 29 versions & 4 rubygems