From df10279252a79a0d7a40c3014becf8482060a54d Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Fri, 6 Jul 2012 18:04:33 -0500 Subject: 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index 46bf3bbe48..581ceaf9ce 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -10,7 +10,10 @@ require 'action_dispatch/testing/integration' # Enable turn if it is available begin require 'turn' - MiniTest::Unit.use_natural_language_case_names = true + + Turn.config do |c| + c.natural = true + end rescue LoadError end -- cgit v1.2.3