Permalink
Browse files

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
    `<top (required)>': undefined method `use_natural_language_case_names='
    for MiniTest::Unit:Class (NoMethodError)
  • Loading branch information...
1 parent bf16456 commit 3326b8b1393489fed9b6717e108bac6a058ff20c Francesco Rodriguez committed Jul 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/test_help.rb
@@ -17,8 +17,8 @@
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

0 comments on commit 3326b8b

Please sign in to comment.