aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-28 16:17:37 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-31 13:57:24 -0300
commit5da4d5142a60edda0cb78071553993ee33bb8637 (patch)
tree7c9f025bb50cd918c176a429749d221caa27802e /activesupport
parenteb4930e3c724cf71d6ce5bb2aec4af82b2025b03 (diff)
downloadrails-5da4d5142a60edda0cb78071553993ee33bb8637.tar.gz
rails-5da4d5142a60edda0cb78071553993ee33bb8637.tar.bz2
rails-5da4d5142a60edda0cb78071553993ee33bb8637.zip
Add active_support/testing/autorun
minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/testing/autorun.rb5
-rw-r--r--activesupport/test/abstract_unit.rb2
-rw-r--r--activesupport/test/ts_isolated.rb2
3 files changed, 7 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/testing/autorun.rb b/activesupport/lib/active_support/testing/autorun.rb
new file mode 100644
index 0000000000..c446adc16d
--- /dev/null
+++ b/activesupport/lib/active_support/testing/autorun.rb
@@ -0,0 +1,5 @@
+gem 'minitest'
+
+require 'minitest/unit'
+
+MiniTest::Unit.autorun
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb
index 8a67b148c3..90e50f235b 100644
--- a/activesupport/test/abstract_unit.rb
+++ b/activesupport/test/abstract_unit.rb
@@ -15,7 +15,7 @@ silence_warnings do
Encoding.default_external = "UTF-8"
end
-require 'minitest/autorun'
+require 'active_support/testing/autorun'
require 'empty_bool'
ENV['NO_RELOAD'] = '1'
diff --git a/activesupport/test/ts_isolated.rb b/activesupport/test/ts_isolated.rb
index 2c217157d3..294d6595f7 100644
--- a/activesupport/test/ts_isolated.rb
+++ b/activesupport/test/ts_isolated.rb
@@ -1,4 +1,4 @@
-require 'minitest/autorun'
+require 'active_support/testing/autorun'
require 'active_support/test_case'
require 'rbconfig'
require 'active_support/core_ext/kernel/reporting'