aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/test_case.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2011-03-31 12:11:03 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2011-03-31 12:11:03 -0700
commitb27057731cba8678265026f0fdfe75f5ae411d4d (patch)
treee370bfe4ccf47b1d54a827e8b7815865fd079fc3 /activesupport/lib/active_support/test_case.rb
parent7a9dafd96cd4735b9134081f1d8103a6c62a6809 (diff)
downloadrails-b27057731cba8678265026f0fdfe75f5ae411d4d.tar.gz
rails-b27057731cba8678265026f0fdfe75f5ae411d4d.tar.bz2
rails-b27057731cba8678265026f0fdfe75f5ae411d4d.zip
Use Turn to format all Rails tests and enable the natural language case names
Diffstat (limited to 'activesupport/lib/active_support/test_case.rb')
-rw-r--r--activesupport/lib/active_support/test_case.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index fb52fc7083..a48656192c 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -15,6 +15,11 @@ rescue LoadError
Mocha.const_set :ExpectationError, Class.new(StandardError)
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
+end
+
module ActiveSupport
class TestCase < ::Test::Unit::TestCase
if defined? MiniTest