Permalink
Browse files

Let's run action pack tests with Dalli

There is no memcache gem left in repo.
  • Loading branch information...
1 parent 817a20b commit dd6206999172ebc4418c1b7c62862492ce77016c @arunagw arunagw committed with guilleiguaran Aug 27, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/test/dispatch/session/mem_cache_store_test.rb
@@ -34,9 +34,9 @@ def call_reset_session
end
begin
- require 'memcache'
- memcache = MemCache.new('localhost:11211')
- memcache.set('ping', '')
+ require 'dalli'
+ ss = Dalli::Client.new('localhost:11211').stats
+ raise Dalli::DalliError unless ss['localhost:11211']
def test_setting_and_getting_session_value
with_test_route_set do
@@ -165,7 +165,7 @@ def test_prevents_session_fixation
assert_not_equal session_id, cookies['_session_id']
end
end
- rescue LoadError, RuntimeError
+ rescue LoadError, RuntimeError, Dalli::DalliError
$stderr.puts "Skipping MemCacheStoreTest tests. Start memcached and try again."
end

0 comments on commit dd62069

Please sign in to comment.