Permalink
Browse files

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 717aa92 commit df10279252a79a0d7a40c3014becf8482060a54d Francesco Rodriguez committed Jul 6, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 railties/lib/rails/test_help.rb
@@ -10,7 +10,10 @@
# 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

0 comments on commit df10279

Please sign in to comment.