dock_test 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dock_test/assertions.rb +2 -1
- data/lib/dock_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb29694ab4a75a330fdb97fe48f043f3634b0497
|
4
|
+
data.tar.gz: 649ae69dabc536dc711abf0f9bf46734d7cfae3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2edca94848c2ee66fec2df8b7df10a654b02d6099f9c4df2fc4a0ef0d4f8759038e7a0bac52c9c36fa7b8da87a0c577ddafa5d09b4cd49abb10a97698db3b249
|
7
|
+
data.tar.gz: 4aa84116c2488c278f1b45b73c858b596ebd722ed78f2517b48b29802d2fca008c65ee84a15659ad19df1b2379fe0cc3e2b6fa751b187fdefe25e691a11ff4d8
|
data/lib/dock_test/assertions.rb
CHANGED
@@ -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
|
-
|
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)
|
data/lib/dock_test/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|