浏览代码

Set ActiveSupport::TestCase.test_order

Thibaut 11 年之前
父节点
当前提交
ceff86bac4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      test/test_helper.rb

+ 2 - 0
test/test_helper.rb

@@ -16,6 +16,8 @@ Dir[File.dirname(__FILE__) + '/support/*.rb'].each do |file|
   autoload File.basename(file, '.rb').camelize, file
   autoload File.basename(file, '.rb').camelize, file
 end
 end
 
 
+ActiveSupport::TestCase.test_order = :random
+
 class MiniTest::Spec
 class MiniTest::Spec
   include ActiveSupport::Testing::Assertions
   include ActiveSupport::Testing::Assertions