Sha256: 83779a8a9c38995dedeba8adbaae4a3ea3b8b7af9ba4a7267616b9848e3f7d42
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
ENV['RAILS_ENV'] ||= 'test' ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' Bundler.require :default, :development require 'fourth_base' require 'active_support/test_case' require 'active_support/testing/autorun' if Rails.version.to_i == 4 require 'dummy_apps/rails_four/init' else require 'dummy_apps/rails_five/init' end require 'rails/test_help' Dir['test/test_helpers/*.{rb}'].each { |f| require_relative "../#{f}" } ActiveSupport.test_order = :random if ActiveSupport.respond_to?(:test_order) module FourthBase class TestCase < ActiveSupport::TestCase if Rails.version.to_i == 4 self.use_transactional_fixtures = false else self.use_transactional_tests = false end include RailsVersionHelpers, DummyAppHelpers, StreamHelpers setup :delete_dummy_files teardown :delete_dummy_files private def establish_connection ActiveRecord::Base.establish_connection ActiveRecord::Base.connection FourthBase::Base.establish_connection(FourthBase.config) FourthBase::Base.connection end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fourthbase-2.1.2 | test/test_helper.rb |