dalli 2.7.0 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dalli might be problematic. Click here for more details.

@@ -1,30 +0,0 @@
1
- # encoding: utf-8
2
- require 'helper'
3
- require 'json'
4
- require 'memcached_mock'
5
-
6
- describe 'Serializer' do
7
-
8
- it 'default to Marshal' do
9
- memcached_kill(29198) do |dc|
10
- memcache = Dalli::Client.new('127.0.0.1:29198')
11
- memcache.set 1,2
12
- assert_equal Marshal, memcache.instance_variable_get('@ring').servers.first.serializer
13
- end
14
- end
15
-
16
- it 'support a custom serializer' do
17
- memcached_kill(29198) do |dc|
18
- memcache = Dalli::Client.new('127.0.0.1:29198', :serializer => JSON)
19
- memcache.set 1,2
20
- begin
21
- assert_equal JSON, memcache.instance_variable_get('@ring').servers.first.serializer
22
-
23
- memcached(19128) do |newdc|
24
- assert newdc.set("json_test", {"foo" => "bar"})
25
- assert_equal({"foo" => "bar"}, newdc.get("json_test"))
26
- end
27
- end
28
- end
29
- end
30
- end