From 3326b8b1393489fed9b6717e108bac6a058ff20c Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Sat, 28 Jul 2012 13:59:08 -0500 Subject: Backport #6995 to 3-2 stable Update `test_help` to config properly turn natural language option. Last versions of Turn don't monkey patch MiniTest to setup the natural language option. Here is an [example](https://github.com/TwP/turn/blob/master/try/test_autorun_minitest.rb#L3). This patches the following behaviour: $ rake test:units `': undefined method `use_natural_language_case_names=' for MiniTest::Unit:Class (NoMethodError) --- railties/lib/rails/test_help.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties') diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index 8d0d8cacac..2efa25af7e 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -17,8 +17,8 @@ if defined?(MiniTest) begin require 'turn' - if MiniTest::Unit.respond_to?(:use_natural_language_case_names=) - MiniTest::Unit.use_natural_language_case_names = true + Turn.config do |c| + c.natural = true end rescue LoadError end -- cgit v1.2.3