dock_test 0.3.2 → 0.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77cc047de8516ff88d9eedfdf8508078bffa1396
4
- data.tar.gz: 88d2c0d9765eef312112434099868fe55daf1de1
3
+ metadata.gz: cb29694ab4a75a330fdb97fe48f043f3634b0497
4
+ data.tar.gz: 649ae69dabc536dc711abf0f9bf46734d7cfae3b
5
5
  SHA512:
6
- metadata.gz: fcef6a29e0c78a43aa438f3e41e229ae8b010f26834dde9cb1753b277364e914d3d51c73602e62978b19a1e763c6b6f5d63d99b549f5c097abdd6b0b3ff0d66e
7
- data.tar.gz: d441bc10f9f028ead2e6dbbcc4186db71ee4cff34c1f506190cbf83e45cdac9e654017e8ec238c05cd45e8d1f5681a457256c4c813f8c19b7eb4ab4eaa25a1b9
6
+ metadata.gz: 2edca94848c2ee66fec2df8b7df10a654b02d6099f9c4df2fc4a0ef0d4f8759038e7a0bac52c9c36fa7b8da87a0c577ddafa5d09b4cd49abb10a97698db3b249
7
+ data.tar.gz: 4aa84116c2488c278f1b45b73c858b596ebd722ed78f2517b48b29802d2fca008c65ee84a15659ad19df1b2379fe0cc3e2b6fa751b187fdefe25e691a11ff4d8
@@ -19,7 +19,8 @@ module Minitest::Assertions
19
19
 
20
20
  def assert_response_json_schema(schema_path)
21
21
  schema = File.open(schema_path).read
22
- assert JSON::Validator.validate(schema, last_response.body), "The actual response does not match the schema defined in #{schema_path}"
22
+ errors = JSON::Validator.fully_validate(schema, last_response.body)
23
+ assert errors.empty?, "The actual response does not match the schema defined in #{schema_path} because #{errors.join(', ')}"
23
24
  end
24
25
 
25
26
  def assert_response_xml_schema(schema_path)
@@ -1,3 +1,3 @@
1
1
  module DockTest
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dock_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Xu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-17 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json