aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-02-12 12:11:19 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2015-02-12 12:11:19 -0800
commitb03b09dc8660e26ed23a851ebda2bcbcb47d7d0a (patch)
treec74ad6fac6052d71700ef334c9303259b8a8ac86 /actionpack/lib
parent4cf3b8ac47f109fa83a6f66eb97d6cb0eace0d05 (diff)
downloadrails-b03b09dc8660e26ed23a851ebda2bcbcb47d7d0a.tar.gz
rails-b03b09dc8660e26ed23a851ebda2bcbcb47d7d0a.tar.bz2
rails-b03b09dc8660e26ed23a851ebda2bcbcb47d7d0a.zip
remove meta programming
there's really no benefit here. It's the same number of lines without the meta programming and is faster
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/testing/integration.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb
index 5ff418e677..590fed955a 100644
--- a/actionpack/lib/action_dispatch/testing/integration.rb
+++ b/actionpack/lib/action_dispatch/testing/integration.rb
@@ -457,9 +457,9 @@ module ActionDispatch
# Copy the instance variables from the current session instance into the
# test instance.
def copy_session_variables! #:nodoc:
- %w(controller response request).each do |var|
- instance_variable_set("@#{var}", @integration_session.__send__(var))
- end
+ @controller = @integration_session.controller
+ @response = @integration_session.response
+ @request = @integration_session.request
end
def default_url_options