aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
diff options
context:
space:
mode:
authorHongli Lai (Phusion) <hongli@phusion.nl>2008-07-18 21:42:20 +0200
committerHongli Lai (Phusion) <hongli@phusion.nl>2008-07-18 21:42:20 +0200
commit03afe79dd8ea8ad968c4921c233aacc7eca02f5a (patch)
tree2e5ea4c291148029e0f0b34b338a2e93e27ce93e /actionpack/lib/action_controller/test_process.rb
parent5508bfd0ffd213d3fced945326a1601fef9694e5 (diff)
downloadrails-03afe79dd8ea8ad968c4921c233aacc7eca02f5a.tar.gz
rails-03afe79dd8ea8ad968c4921c233aacc7eca02f5a.tar.bz2
rails-03afe79dd8ea8ad968c4921c233aacc7eca02f5a.zip
Improve overview for ActionController::TestCase.
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r--actionpack/lib/action_controller/test_process.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index 5bd997245e..b9cf1e2bb0 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -361,6 +361,7 @@ module ActionController #:nodoc:
module TestProcess
def self.included(base)
# execute the request simulating a specific HTTP method and set/volley the response
+ # TODO: this should be un-DRY'ed for the sake of API documentation.
%w( get post put delete head ).each do |method|
base.class_eval <<-EOV, __FILE__, __LINE__
def #{method}(action, parameters = nil, session = nil, flash = nil)