mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
update performance test template to use test method
This commit is contained in:
parent
717aa92dd3
commit
ae3fdac896
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ class BrowsingTest < ActionDispatch::PerformanceTest
|
||||||
# self.profile_options = { runs: 5, metrics: [:wall_time, :memory],
|
# self.profile_options = { runs: 5, metrics: [:wall_time, :memory],
|
||||||
# output: 'tmp/performance', formats: [:flat] }
|
# output: 'tmp/performance', formats: [:flat] }
|
||||||
|
|
||||||
def test_homepage
|
test "homepage" do
|
||||||
get '/'
|
get '/'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,7 +6,7 @@ class <%= class_name %>Test < ActionDispatch::PerformanceTest
|
||||||
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory],
|
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory],
|
||||||
# :output => 'tmp/performance', :formats => [:flat] }
|
# :output => 'tmp/performance', :formats => [:flat] }
|
||||||
|
|
||||||
def test_homepage
|
test "homepage" do
|
||||||
get '/'
|
get '/'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue