diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-24 10:40:23 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-24 10:40:23 -0700 |
commit | 66b859bd9e7138b27902805721309ce03b722de3 (patch) | |
tree | fc31acbdad9cfd722b52a53b5166471d522d9f44 /railties/lib | |
parent | aac9d2ca43c796efcc60089e8f4ee184bf6a3b57 (diff) | |
parent | ae3fdac89626eadd03cc72e603c884634dc4d868 (diff) | |
download | rails-66b859bd9e7138b27902805721309ce03b722de3.tar.gz rails-66b859bd9e7138b27902805721309ce03b722de3.tar.bz2 rails-66b859bd9e7138b27902805721309ce03b722de3.zip |
Merge pull request #6991 from frodsan/performance_test_generator
update performance test template to use test method
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb b/railties/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb index 9342a57b20..d09ce5ad34 100644 --- a/railties/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb +++ b/railties/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb @@ -6,7 +6,7 @@ class BrowsingTest < ActionDispatch::PerformanceTest # self.profile_options = { runs: 5, metrics: [:wall_time, :memory], # output: 'tmp/performance', formats: [:flat] } - def test_homepage + test "homepage" do get '/' end end diff --git a/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb b/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb index 370750a175..2f25dcf832 100644 --- a/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb +++ b/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb @@ -6,7 +6,7 @@ class <%= class_name %>Test < ActionDispatch::PerformanceTest # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory], # :output => 'tmp/performance', :formats => [:flat] } - def test_homepage + test "homepage" do get '/' end end |