lib/active_support/testing/autorun.rb in activesupport-4.2.11.3 vs lib/active_support/testing/autorun.rb in activesupport-5.0.0.beta1
- old
+ new
@@ -1,5 +1,12 @@
gem 'minitest'
require 'minitest'
-Minitest.autorun
+if Minitest.respond_to?(:run_with_rails_extension)
+ unless Minitest.run_with_rails_extension
+ Minitest.run_with_autorun = true
+ Minitest.autorun
+ end
+else
+ Minitest.autorun
+end