From 3bf3bc228c503f93122f19bc208ff175c59cc362 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Tue, 4 Apr 2006 20:16:29 +0000 Subject: 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 --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_controller/integration.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index d34ae7fc02..da981e6669 100644 --- a/actionpack/CHANGELOG +++ b/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 '' text. [Nicholas Seckar] * CHANGED DEFAULT: Don't parse YAML input by default, but keep it available as an easy option [DHH] diff --git a/actionpack/lib/action_controller/integration.rb b/actionpack/lib/action_controller/integration.rb index 54618ee68c..33ec1a0107 100644 --- a/actionpack/lib/action_controller/integration.rb +++ b/actionpack/lib/action_controller/integration.rb @@ -464,7 +464,7 @@ module ActionController @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 -- cgit v1.2.3