1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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)
This commit is contained in:
Francesco Rodriguez 2012-07-06 18:04:33 -05:00
parent 717aa92dd3
commit df10279252

View file

@ -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