aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2011-03-31 12:17:28 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2011-03-31 12:17:28 -0700
commitedf7c9a6a3331bfc0beabc9dc9c8beac22677e53 (patch)
treefc784ea7f5a8655de217340c4281dc5416031293 /activesupport/lib
parentb27057731cba8678265026f0fdfe75f5ae411d4d (diff)
downloadrails-edf7c9a6a3331bfc0beabc9dc9c8beac22677e53.tar.gz
rails-edf7c9a6a3331bfc0beabc9dc9c8beac22677e53.tar.bz2
rails-edf7c9a6a3331bfc0beabc9dc9c8beac22677e53.zip
require turn only for minitest
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/test_case.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index a48656192c..d25b092fb4 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -16,8 +16,12 @@ rescue LoadError
end
# Added by Turn to support natural case names in the output formatting
-if defined?(MiniTest) && MiniTest::Unit.respond_to?(:use_natural_language_case_names=)
- MiniTest::Unit.use_natural_language_case_names = true
+if defined?(MiniTest)
+ require 'turn'
+
+ if MiniTest::Unit.respond_to?(:use_natural_language_case_names=)
+ MiniTest::Unit.use_natural_language_case_names = true
+ end
end
module ActiveSupport