aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/session
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-20 16:03:55 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-20 16:03:55 -0500
commita5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3 (patch)
tree8dd54db8e9028021cfbff8b6aaed298b48b4d94a /actionpack/test/dispatch/session
parent207d0483e57b8d017ddd0c225d30a3e4fc9edc0c (diff)
downloadrails-a5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3.tar.gz
rails-a5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3.tar.bz2
rails-a5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3.zip
Start rewriting some internal tests to use the new routing dsl
Diffstat (limited to 'actionpack/test/dispatch/session')
-rw-r--r--actionpack/test/dispatch/session/cookie_store_test.rb2
-rw-r--r--actionpack/test/dispatch/session/mem_cache_store_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/session/cookie_store_test.rb b/actionpack/test/dispatch/session/cookie_store_test.rb
index ab5fabde65..edfc303d3d 100644
--- a/actionpack/test/dispatch/session/cookie_store_test.rb
+++ b/actionpack/test/dispatch/session/cookie_store_test.rb
@@ -219,7 +219,7 @@ class CookieStoreTest < ActionController::IntegrationTest
def with_test_route_set(options = {})
with_routing do |set|
set.draw do |map|
- map.connect "/:action", :controller => "cookie_store_test/test"
+ match ':action', :to => TestController
end
options = {:key => SessionKey, :secret => SessionSecret}.merge(options)
@app = ActionDispatch::Session::CookieStore.new(set, options)
diff --git a/actionpack/test/dispatch/session/mem_cache_store_test.rb b/actionpack/test/dispatch/session/mem_cache_store_test.rb
index c7435bd06b..afc9d91d50 100644
--- a/actionpack/test/dispatch/session/mem_cache_store_test.rb
+++ b/actionpack/test/dispatch/session/mem_cache_store_test.rb
@@ -112,7 +112,7 @@ class MemCacheStoreTest < ActionController::IntegrationTest
def with_test_route_set
with_routing do |set|
set.draw do |map|
- map.connect "/:action", :controller => "mem_cache_store_test/test"
+ match ':action', :to => TestController
end
@app = ActionDispatch::Session::MemCacheStore.new(set, :key => '_session_id')
yield