Don't create test/performance/test_helper.rb. Just require the needed files from test directly. [#1135 state:resolved]
This commit is contained in:
parent
47be090d37
commit
5384ba3081
|
@ -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
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
require 'test_helper'
|
||||
require 'performance_test_help'
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue