store-spec 0.0.3 → 0.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.
- checksums.yaml +4 -4
- data/lib/store/spec.rb +2 -2
- data/lib/store/spec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b72a2093814192fc776567b2fb64132c35ed1d
|
4
|
+
data.tar.gz: a443b5eeafb401c5e23b499812646dd5e951a2a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83046a13f12df48dad3e3eb47cdd50b0e880ce356cb362d495b711c6370a27f4e389798c23cb442a45fc53bce9352284cde7bd39195d17b849cf1cd446f6acc2
|
7
|
+
data.tar.gz: ea92ea29dc64082497ae5accbc3d7734c80bb73c00a692c6f008e9ba20e51297f474821b8f68a9626c06656f2b542a8af066f88e0500f7a3a138bfb64bce5125
|
data/lib/store/spec.rb
CHANGED
@@ -113,7 +113,7 @@ class Store
|
|
113
113
|
ids << subject.insert(datas[1])
|
114
114
|
subject.insert(datas[2])
|
115
115
|
|
116
|
-
expected = [{"foo"=>"here", "uid"=>ids[0]}, {"foo"=>"there", "uid"=>ids[1]}
|
116
|
+
expected = {ids[0] => {"foo"=>"here", "uid"=>ids[0]}, ids[1] => {"foo"=>"there", "uid"=>ids[1]}}
|
117
117
|
|
118
118
|
assert_equal expected, subject.bulk_find(ids)
|
119
119
|
end
|
@@ -132,7 +132,7 @@ class Store
|
|
132
132
|
ids << subject.insert(datas[0])
|
133
133
|
ids << subject.insert(datas[1])
|
134
134
|
|
135
|
-
expected = [{"foo"=>"here", "uid"=>ids[0]}, {"foo"=>"there", "uid"=>ids[1]}
|
135
|
+
expected = {ids[0] => {"foo"=>"here", "uid"=>ids[0]}, ids[1] => {"foo"=>"there", "uid"=>ids[1]}}
|
136
136
|
|
137
137
|
assert_equal expected, subject.all
|
138
138
|
end
|
data/lib/store/spec/version.rb
CHANGED