提交 dd620699 编写于 作者: A Arun Agrawal 提交者: Guillermo Iguaran

Let's run action pack tests with Dalli

There is no memcache gem left in repo.
上级 817a20b1
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册