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:
parent
717aa92dd3
commit
df10279252
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue