mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
MiniTest is always defined in this case
This commit is contained in:
parent
f9382cd794
commit
ce84df020a
1 changed files with 6 additions and 8 deletions
|
@ -7,16 +7,14 @@ require 'active_support/test_case'
|
|||
require 'action_controller/test_case'
|
||||
require 'action_dispatch/testing/integration'
|
||||
|
||||
if defined?(MiniTest)
|
||||
# Enable turn if it is available
|
||||
begin
|
||||
require 'turn'
|
||||
# Enable turn if it is available
|
||||
begin
|
||||
require 'turn'
|
||||
|
||||
if MiniTest::Unit.respond_to?(:use_natural_language_case_names=)
|
||||
MiniTest::Unit.use_natural_language_case_names = true
|
||||
end
|
||||
rescue LoadError
|
||||
if MiniTest::Unit.respond_to?(:use_natural_language_case_names=)
|
||||
MiniTest::Unit.use_natural_language_case_names = true
|
||||
end
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
if defined?(ActiveRecord::Base)
|
||||
|
|
Loading…
Reference in a new issue