mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2b41343c34
Goals: 1. Default to :random for newly generated applications 2. Default to :sorted for existing applications with a warning 3. Only show the warning once 4. Only show the warning if the app actually uses AS::TestCase Fixes #16769
20 lines
641 B
Ruby
20 lines
641 B
Ruby
require File.expand_path('../../../../load_paths', __FILE__)
|
|
|
|
require 'config'
|
|
require 'active_model'
|
|
require 'active_support/core_ext/string/access'
|
|
|
|
# Show backtraces for deprecated behavior for quicker cleanup.
|
|
ActiveSupport::Deprecation.debug = true
|
|
|
|
# Disable available locale checks to avoid warnings running the test suite.
|
|
I18n.enforce_available_locales = false
|
|
|
|
require 'active_support/testing/autorun'
|
|
|
|
require 'mocha/setup' # FIXME: stop using mocha
|
|
|
|
# FIXME: we have tests that depend on run order, we should fix that and
|
|
# remove this method call.
|
|
require 'active_support/test_case'
|
|
ActiveSupport::TestCase.test_order = :sorted
|