mirror of
https://github.com/github/rails.git
synced 2026-01-29 08:18:03 -05:00
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
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user