1
0
Fork 0
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:
Rafael Mendonça França 2012-01-06 15:54:40 -03:00
parent f9382cd794
commit ce84df020a

View file

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