Permalink
Browse files

MiniTest is always defined in this case

  • Loading branch information...
rafaelfranca committed Jan 6, 2012
1 parent f9382cd commit ce84df020a9665348912b42661c906a332d55220
Showing with 6 additions and 8 deletions.
  1. +6 −8 railties/lib/rails/test_help.rb
@@ -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)

0 comments on commit ce84df0

Please sign in to comment.