Sha256: dd0b1abd24d574cd5cfb5bbdfefd776e7037ed47e333f4b536afd4274b74c426
Contents?: true
Size: 690 Bytes
Versions: 38
Compression:
Stored size: 690 Bytes
Contents
require 'fileutils' # Load the environment ENV['RAILS_ENV'] = 'test' rails_root = File.dirname(__FILE__) + '/rails_root' require "#{rails_root}/config/environment.rb" # Load the testing framework require 'test_help' silence_warnings { RAILS_ENV = ENV['RAILS_ENV'] } # Run the migrations ActiveRecord::Migration.verbose = false ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate") # Setup the fixtures path ActiveSupport::TestCase.fixture_path = File.join(File.dirname(__FILE__), "fixtures") class ActiveSupport::TestCase #:nodoc: self.use_transactional_fixtures = false self.use_instantiated_fixtures = false end require 'test/fail_macros' require 'test/model_builder'
Version data entries
38 entries across 38 versions & 10 rubygems