aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/caching_test.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-11-17 05:41:47 +0000
committerMichael Koziarski <michael@koziarski.com>2007-11-17 05:41:47 +0000
commit6d0e5eaf06c6f285201bdbb7948c31281f15f8c5 (patch)
treed30dcbd470f4a87cfc32e6d70cf357571a25e006 /actionpack/test/controller/caching_test.rb
parentc07eae4d40b3450215e3aefb876dd5d983fc24bf (diff)
downloadrails-6d0e5eaf06c6f285201bdbb7948c31281f15f8c5.tar.gz
rails-6d0e5eaf06c6f285201bdbb7948c31281f15f8c5.tar.bz2
rails-6d0e5eaf06c6f285201bdbb7948c31281f15f8c5.zip
memoize host with port and refactor the tests which depend on it changing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r--actionpack/test/controller/caching_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index f3cf66232f..828b2fbf26 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -248,16 +248,22 @@ class ActionCacheTest < Test::Unit::TestCase
@request.host = 'jamis.hostname.com'
get :index
jamis_cache = content_to_cache
-
+
+ reset!
+
@request.host = 'david.hostname.com'
get :index
david_cache = content_to_cache
assert_not_equal jamis_cache, @response.body
+ reset!
+
@request.host = 'jamis.hostname.com'
get :index
assert_equal jamis_cache, @response.body
+ reset!
+
@request.host = 'david.hostname.com'
get :index
assert_equal david_cache, @response.body