diff options
author | thoefer <mail@tomhoefer.de> | 2011-08-01 11:28:31 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:26 -0700 |
commit | 5f3265c4714efd697cb71015489a9c59d1129440 (patch) | |
tree | 4ef89aca571c2e23a3c50cf4bf4cb523ded9b863 /actionpack/lib/action_controller/metal/testing.rb | |
parent | b6b6e81a5c29d4adb3007659ca30e02444ad0c9c (diff) | |
download | rails-5f3265c4714efd697cb71015489a9c59d1129440.tar.gz rails-5f3265c4714efd697cb71015489a9c59d1129440.tar.bz2 rails-5f3265c4714efd697cb71015489a9c59d1129440.zip |
Fix the issue where default_url_options is being cached on test cases. Closes #1872. Closes #2031.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_controller/metal/testing.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/testing.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/testing.rb b/actionpack/lib/action_controller/metal/testing.rb index f4efeb33ba..d1813ee745 100644 --- a/actionpack/lib/action_controller/metal/testing.rb +++ b/actionpack/lib/action_controller/metal/testing.rb @@ -4,6 +4,11 @@ module ActionController include RackDelegation + def recycle! + @_url_options = nil + end + + # TODO: Clean this up def process_with_new_base_test(request, response) @_request = request |