diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-12 19:30:05 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-12 19:37:04 +0900 |
commit | 6ffb29d24e05abbd9ffe3ea974140d6c70221807 (patch) | |
tree | ea40496435d86e57bf70dc3fc424daccced39a3a /actionpack/test | |
parent | c27883c501284b85db39926ce42671e257a5f6d1 (diff) | |
download | rails-6ffb29d24e05abbd9ffe3ea974140d6c70221807.tar.gz rails-6ffb29d24e05abbd9ffe3ea974140d6c70221807.tar.bz2 rails-6ffb29d24e05abbd9ffe3ea974140d6c70221807.zip |
users_dont_suck_but_only_we_suck_and_only_our_tests_are_order_dependent!
Calling ActiveSupport::TestCase.i_suck_and_my_tests_are_order_dependent! in AS::TestCase makes
everyone's tests order dependent, which should never be done by the framework.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 4e17d57dad..08f8f64123 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -497,3 +497,8 @@ if ActiveSupport::Testing::Isolation.forking_env? && PROCESS_COUNT > 0 # Use N processes (N defaults to 4) Minitest.parallel_executor = ForkingExecutor.new(PROCESS_COUNT) end + +# 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.i_suck_and_my_tests_are_order_dependent! |