spymemcached.jruby 1.0.14-java → 1.0.15-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5a3b16dd12e499e701577ed3a6b22c3cd9428a9
4
- data.tar.gz: 145035cc3997ff4d08760eca1655861294586b46
3
+ metadata.gz: 2b53a0b1cc4416982054ff8ca2281a1897316b95
4
+ data.tar.gz: 6fddda3879702cbba0346e5d92b997a579e945c3
5
5
  SHA512:
6
- metadata.gz: 4a6434fa6dfedc06bb9a1c816124f6cf24dbb40add3ce70f76910f45a9205c5d7b3f6de58f6977a8a02f7f407201837c0411bb673b2734f56756f91307df6b48
7
- data.tar.gz: d8124c826b66e6321884fc0458509d0c7c8109a1e002cf0b67819dc53d5324d2d29e4f0e77273a45720d01964b295526b9dbc0429c19ad81ae1a286f6586d436
6
+ metadata.gz: f05899141e2eda759430aa4708a0097c0d3c3a3cdf47655802ce19a2ab1831eb01faa28d3d55621d965cafff4b1833b9e5e1a13ee66ecd8794e106e33558fcb2
7
+ data.tar.gz: 01ed100c21a9312a42119af75d8fbd2a5726c33ace0da1c745d61d64ffcb40ae7ae75f8bcce1385e329320d2dd692f2c049a4da6b2f99b40bc082a6e1426210c
Binary file
@@ -1,4 +1,9 @@
1
1
  require 'test_helper'
2
+ unless defined?(MemCache::MemCacheError)
3
+ class MemCache
4
+ class MemCacheError < StandardError; end
5
+ end
6
+ end
2
7
 
3
8
  class SpymemcachedRails23Test < Test::Unit::TestCase
4
9
  def setup
@@ -30,8 +35,12 @@ class SpymemcachedRails23Test < Test::Unit::TestCase
30
35
  assert_equal({"key1" => '0', 'key2' => '1'}, @client.get_multi(['key1', 'key2'], :raw => true))
31
36
  end
32
37
 
33
- def test_shutdown
38
+ def test_should_raise_memcache_error_after_shutdown
39
+ @client.set('hello', 'world')
34
40
  @client.shutdown
41
+ assert_raise MemCache::MemCacheError do
42
+ @client.get('hello')
43
+ end
35
44
  end
36
45
 
37
46
  def response
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spymemcached.jruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: java
6
6
  authors:
7
7
  - Xiao Li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-27 00:00:00.000000000 Z
11
+ date: 2014-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake