aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/examples')
-rw-r--r--actionpack/examples/minimal.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/actionpack/examples/minimal.rb b/actionpack/examples/minimal.rb
index 01c64ba56b..cbfe6a427a 100644
--- a/actionpack/examples/minimal.rb
+++ b/actionpack/examples/minimal.rb
@@ -70,10 +70,9 @@ class HttpPostController < ActionController::Metal
end
end
-# Runner.run(MetalPostController, N, 'metal')
-# Runner.run(HttpPostController.action(:index), N, 'http') if defined? HttpPostController
-# Runner.run(BasePostController.action(:index), N, 'base')
-Runner.run(BasePostController.action(:partial), N, 'partial')
-Runner.run(BasePostController.action(:many_partials), N, 'many_partials')
-Runner.run(BasePostController.action(:partial_collection), N, 'collection')
-Runner.run(BasePostController.action(:show_template), N, 'template')
+(ENV["M"] || 1).to_i.times do
+ Runner.run(BasePostController.action(:partial), N, 'partial')
+ Runner.run(BasePostController.action(:many_partials), N, 'many_partials')
+ Runner.run(BasePostController.action(:partial_collection), N, 'collection')
+ Runner.run(BasePostController.action(:show_template), N, 'template')
+end \ No newline at end of file