MiniTest is always defined in this case

上级 f9382cd7
......@@ -7,16 +7,14 @@
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册