Let's run action pack tests with Dalli

There is no memcache gem left in repo.
This commit is contained in:
Arun Agrawal 2012-08-27 09:46:35 +05:30 committed by Guillermo Iguaran
parent 817a20b1cd
commit dd62069991
1 changed files with 4 additions and 4 deletions

View File

@ -34,9 +34,9 @@ class MemCacheStoreTest < ActionDispatch::IntegrationTest
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 @@ class MemCacheStoreTest < ActionDispatch::IntegrationTest
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