Don't create test/performance/test_helper.rb. Just require the needed files from test directly. [#1135 state:resolved]

This commit is contained in:
Pratik Naik 2008-10-17 22:58:37 +02:00
parent 47be090d37
commit 5384ba3081
4 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,5 @@
require 'performance/test_helper'
require 'test_helper'
require 'performance_test_help'
# Profiling results for each test method are written to tmp/performance.
class BrowsingTest < ActionController::PerformanceTest

View File

@ -1,2 +0,0 @@
require 'test_helper'
require 'performance_test_help'

View File

@ -50,7 +50,6 @@ class AppGenerator < Rails::Generator::Base
m.template "helpers/application.rb", "app/controllers/application.rb", :assigns => { :app_name => @app_name, :app_secret => md5.hexdigest }
m.template "helpers/application_helper.rb", "app/helpers/application_helper.rb"
m.template "helpers/test_helper.rb", "test/test_helper.rb"
m.template "helpers/performance_test_helper.rb", "test/performance/test_helper.rb"
m.template "helpers/performance_test.rb", "test/performance/browsing_test.rb"
# database.yml and routes.rb

View File

@ -1,4 +1,5 @@
require 'performance/test_helper'
require 'test_helper'
require 'performance_test_help'
class <%= class_name %>Test < ActionController::PerformanceTest
# Replace this with your real tests.