pipely 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pipely/shared_examples.rb +7 -0
- data/lib/pipely/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: d5b45f159fc6f0317e3fad859d29dee83848fdaf
|
4
|
+
data.tar.gz: 710118f760a409407d6d2016c1ecdbbfffb63b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac5a262ed048975028ca0390edd75d6ea46eada4e589c129daece994a98f7e8aa722a55d691aefd0b69e228f7fe3eb651a2da8b02e856d717ae7444fe72b895d
|
7
|
+
data.tar.gz: 3dc41fe8c90182f06a31e2f7d2e36b13024c51cb0e55933aeb15a7acc66eda49f5f288929a9bdac582bbb104c36417b4b9c09ea3cd4e088ee08fea61eae669a5
|
@@ -17,4 +17,11 @@ shared_examples "a renderable template" do |environment, config|
|
|
17
17
|
it "produces valid JSON" do
|
18
18
|
expect(JSON.parse(rendered_json)).to be
|
19
19
|
end
|
20
|
+
|
21
|
+
it "does not contain objects with duplicate ids" do
|
22
|
+
objects = JSON.parse(rendered_json)['objects']
|
23
|
+
distinct_ids = objects.map{|h| h['id']}.uniq.compact
|
24
|
+
|
25
|
+
expect(objects.count).to eq(distinct_ids.count)
|
26
|
+
end
|
20
27
|
end
|
data/lib/pipely/version.rb
CHANGED