startback 0.19.3 → 0.19.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/startback/caching/entity_cache.rb +1 -1
- data/lib/startback/version.rb +1 -1
- data/spec/unit/caching/test_entity_cache.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c48ad9ab9ddaa6733cce35a924c08e57c68f6dae5151a9084f0cf50fe6584cf5
|
4
|
+
data.tar.gz: 6739fe6b17c7e044b3e714fa7abf4cf2f9df4bde01e90068a186f9e72178da03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db0259e7543727285bac8dc2251f3a95a5b37f48233c290dffc7c7cbe3a15d56ab4af629d91bea05482af30c5259591f5444e3541772416806cc68cf2985e061
|
7
|
+
data.tar.gz: bb4c89e15a9e7fdfed688f73c29f28e24a30e15f486c33f702f89cca4041b099827fc819ec428b1b3e2429584deca834b99d3fcaa99b7d79ebdd25222f0f9cf5
|
data/lib/startback/version.rb
CHANGED
@@ -155,6 +155,11 @@ module Startback
|
|
155
155
|
expect_any_instance_of(Caching::Logger).to receive(:cache_fail)
|
156
156
|
expect(subject).to eql("a value")
|
157
157
|
end
|
158
|
+
|
159
|
+
it 'does raise when an error occurs during primary key resolution' do
|
160
|
+
expect(cache).to receive(:primary_key).and_raise("Primary key failed")
|
161
|
+
expect{ subject }.to raise_error(/Primary key failed/)
|
162
|
+
end
|
158
163
|
end
|
159
164
|
|
160
165
|
describe "with prometheus listener too" do
|