From 8e8b6b9e403cdeb57d0ba373bff6498dc7f9f5df Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sun, 12 Mar 2006 00:08:26 +0000 Subject: More integration testing tweaks git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/action_controller/integration_test.rb | 29 ++++++++++++++++------ 1 file changed, 22 insertions(+), 7 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/integration_test.rb b/actionpack/lib/action_controller/integration_test.rb index d16d8b00b5..4569ee6ebd 100644 --- a/actionpack/lib/action_controller/integration_test.rb +++ b/actionpack/lib/action_controller/integration_test.rb @@ -461,7 +461,10 @@ module ActionController %w(get post cookies assigns).each do |method| define_method(method) do |*args| - @integration_session.send(method, *args) + reset! unless @integration_session + returning @integration_session.send(method, *args) do + copy_session_variables! + end end end @@ -479,26 +482,38 @@ module ActionController session = Integration::Session.new # delegate the fixture accessors back to the test instance - klass = class<