From b337ab0221085ab1a941d87f06eb4904b5852c82 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Tue, 15 Jul 2008 21:07:25 +0100 Subject: Move performance test helper settings to railties --- railties/helpers/performance_test_helper.rb | 7 +------ railties/lib/performance_test_help.rb | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 railties/lib/performance_test_help.rb diff --git a/railties/helpers/performance_test_helper.rb b/railties/helpers/performance_test_helper.rb index f1662fa30a..1aafc7f7e5 100644 --- a/railties/helpers/performance_test_helper.rb +++ b/railties/helpers/performance_test_helper.rb @@ -1,7 +1,2 @@ require 'test_helper' -require 'action_controller/performance_test' - -ActionController::Base.perform_caching = true -ActionView::Base.cache_template_loading = true -ActiveSupport::Dependencies.mechanism = :require -Rails.logger.level = ActiveSupport::BufferedLogger::INFO +require 'performance_test_help' diff --git a/railties/lib/performance_test_help.rb b/railties/lib/performance_test_help.rb new file mode 100644 index 0000000000..a5e52a7acb --- /dev/null +++ b/railties/lib/performance_test_help.rb @@ -0,0 +1,6 @@ +require 'action_controller/performance_test' + +ActionController::Base.perform_caching = true +ActionView::Base.cache_template_loading = true +ActiveSupport::Dependencies.mechanism = :require +Rails.logger.level = ActiveSupport::BufferedLogger::INFO -- cgit v1.2.3