diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-03-31 12:17:28 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-03-31 12:17:28 -0700 |
commit | edf7c9a6a3331bfc0beabc9dc9c8beac22677e53 (patch) | |
tree | fc784ea7f5a8655de217340c4281dc5416031293 /activesupport | |
parent | b27057731cba8678265026f0fdfe75f5ae411d4d (diff) | |
download | rails-edf7c9a6a3331bfc0beabc9dc9c8beac22677e53.tar.gz rails-edf7c9a6a3331bfc0beabc9dc9c8beac22677e53.tar.bz2 rails-edf7c9a6a3331bfc0beabc9dc9c8beac22677e53.zip |
require turn only for minitest
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/test_case.rb | 8 |
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 |