Permalink
Browse files

Delegate xml_http_request in integration tests to the session instance.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent f4382af commit 3bf3bc228c503f93122f19bc208ff175c59cc362 @jamis jamis committed Apr 4, 2006
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/integration.rb
View
2 actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Delegate xml_http_request in integration tests to the session instance. [Jamis Buck]
+
* Update the diagnostics template skip the useless '<controller not set>' text. [Nicholas Seckar]
* CHANGED DEFAULT: Don't parse YAML input by default, but keep it available as an easy option [DHH]
View
2 actionpack/lib/action_controller/integration.rb
@@ -464,7 +464,7 @@ def reset!
@integration_session = open_session
end
- %w(get post cookies assigns).each do |method|
+ %w(get post cookies assigns xml_http_request).each do |method|
define_method(method) do |*args|
reset! unless @integration_session
returning @integration_session.send(method, *args) do

0 comments on commit 3bf3bc2

Please sign in to comment.