diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-11-01 07:59:24 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-11-01 07:59:24 +0000 |
commit | 82314608b529debe36d5bfc88af5ee0fdd609eef (patch) | |
tree | a1f8c4330f7e98e6ec339122f4c28c799d94340a /actionpack/test/controller | |
parent | e17252f89188839b357ba95288e90039d2328179 (diff) | |
download | rails-82314608b529debe36d5bfc88af5ee0fdd609eef.tar.gz rails-82314608b529debe36d5bfc88af5ee0fdd609eef.tar.bz2 rails-82314608b529debe36d5bfc88af5ee0fdd609eef.zip |
Factor Integration::Runner behavior out of IntegrationTest. Introduce Session#request_count which counts processed requests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/request_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb index 1eb1990397..27b262d994 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -777,7 +777,7 @@ class XmlParamsParsingTest < Test::Unit::TestCase def parse_body(body) env = { 'CONTENT_TYPE' => 'application/xml', 'CONTENT_LENGTH' => body.size.to_s } - cgi = ActionController::Integration::Session::MockCGI.new(env, body) + cgi = ActionController::Integration::Session::StubCGI.new(env, body) ActionController::CgiRequest.new(cgi).request_parameters end end @@ -787,7 +787,7 @@ class LegacyXmlParamsParsingTest < XmlParamsParsingTest def parse_body(body) env = { 'HTTP_X_POST_DATA_FORMAT' => 'xml', 'CONTENT_LENGTH' => body.size.to_s } - cgi = ActionController::Integration::Session::MockCGI.new(env, body) + cgi = ActionController::Integration::Session::StubCGI.new(env, body) ActionController::CgiRequest.new(cgi).request_parameters end end |