store-spec 0.0.3 → 0.0.4

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: 919d742800b71d4b6dd99598da471ae4ab5aad28
4
- data.tar.gz: c581e75163b21d1049f839ff675b47504166da25
3
+ metadata.gz: 35b72a2093814192fc776567b2fb64132c35ed1d
4
+ data.tar.gz: a443b5eeafb401c5e23b499812646dd5e951a2a1
5
5
  SHA512:
6
- metadata.gz: e95e66b0f0d99183499875897da6f01bc914c7a5df394028f7a5034c45c5c1d62d7494b725e85211262f40f2e0862c4665e24171c839a5ae5dc645bd2ecb7dec
7
- data.tar.gz: 1612517a1278977f8a9d33cf913b502947da7d794cce2a9131895eb361c5eed4c3b11e1b47087bc18c2618344c770bf4693fdd4a236a8c05c9bc0e86317db642
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
@@ -1,5 +1,5 @@
1
1
  class Store
2
2
  module Spec
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: store-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Owiesniak