diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-05 16:51:37 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-06 15:50:47 -0800 |
commit | 9342492e1445c47b02db392ba8430ecb9218fc47 (patch) | |
tree | 20a47eb54ad68e9f5b5816ee7a22f55af497e883 | |
parent | aa7857b61742d2785a1bec39269d25031c840757 (diff) | |
download | rails-9342492e1445c47b02db392ba8430ecb9218fc47.tar.gz rails-9342492e1445c47b02db392ba8430ecb9218fc47.tar.bz2 rails-9342492e1445c47b02db392ba8430ecb9218fc47.zip |
require test/unit and sort test order
-rw-r--r-- | activerecord/test/cases/helper.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/test_case.rb | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index adcfed56f9..d16cccdaea 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -2,7 +2,7 @@ require File.expand_path('../../../../load_paths', __FILE__) require 'config' -require 'test/unit' +require 'minitest/autorun' require 'stringio' require 'mocha' diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index 6903733625..4bb4cd196e 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -19,6 +19,12 @@ module ActiveSupport yield if $tags[tag] end + # FIXME: we have tests that depend on run order, we should fix that and + # remove this method. + def self.test_order # :nodoc: + :sorted + end + include ActiveSupport::Testing::SetupAndTeardown include ActiveSupport::Testing::Assertions include ActiveSupport::Testing::Deprecation |