diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-06 18:04:33 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-06 18:12:36 -0500 |
commit | df10279252a79a0d7a40c3014becf8482060a54d (patch) | |
tree | f9375629915f024d892b3a7d2f74ae125d804bf4 | |
parent | 717aa92dd3f75dec04652940d5571ab34a2f79c3 (diff) | |
download | rails-df10279252a79a0d7a40c3014becf8482060a54d.tar.gz rails-df10279252a79a0d7a40c3014becf8482060a54d.tar.bz2 rails-df10279252a79a0d7a40c3014becf8482060a54d.zip |
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)
-rw-r--r-- | railties/lib/rails/test_help.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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 |