rails_kvs_driver 0.2.0 → 0.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69d5596c2cf269f3a9f297ade6fd437fd9be0ffb
|
4
|
+
data.tar.gz: 23a9223ceec011aeed0af3ddf55444824b441cc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ad5af5de6403f7f1e5801b3b48ec83bcc3e5605f8e9d465441769cc1acfb2dabc41add1c684264ed07060b4522fc018ca0ad30ea8d8fb3be5cee34d94a013a2
|
7
|
+
data.tar.gz: 24295617a232b5c8cb650a5d6613f552bbd86bbe3e14cb2363dcf867a2a5d37086a366788d88d29d59ebd8484c12e59720d5d08eae66302b646e62dbcf6872ad
|
@@ -29,7 +29,7 @@ module RailsKvsDriver
|
|
29
29
|
def []=(key, member_sets)
|
30
30
|
delete(key) if has_key?(key)
|
31
31
|
sorted_set = SortedSet.new(@driver_instance,key)
|
32
|
-
member_sets.each {|member_set| sorted_set[member_set[0]] = member_set}
|
32
|
+
member_sets.each {|member_set| sorted_set[member_set[0]] = member_set[1]}
|
33
33
|
end
|
34
34
|
|
35
35
|
# delete sorted_set.
|
@@ -7,14 +7,14 @@ describe RailsKvsDriver::Base do
|
|
7
7
|
expect{RailsKvsDriver::Base.connect('dummy')}.to raise_error(NoMethodError)
|
8
8
|
end
|
9
9
|
|
10
|
-
it 'raise NoMethodError when does not override
|
11
|
-
expect(MockDriver.method_defined?('
|
12
|
-
expect{MockDriver.new(nil,nil)
|
10
|
+
it 'raise NoMethodError when does not override get' do
|
11
|
+
expect(MockDriver.method_defined?('get')).to be_true
|
12
|
+
expect{MockDriver.new(nil,nil).get(nil)}.to raise_error(NoMethodError)
|
13
13
|
end
|
14
14
|
|
15
|
-
it 'raise NoMethodError when does not override
|
16
|
-
expect(MockDriver.method_defined?('
|
17
|
-
expect{MockDriver.new(nil,nil)
|
15
|
+
it 'raise NoMethodError when does not override set' do
|
16
|
+
expect(MockDriver.method_defined?('set')).to be_true
|
17
|
+
expect{MockDriver.new(nil,nil).set(nil,nil)}.to raise_error(NoMethodError)
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'raise NoMethodError when does not override keys' do
|