dock_test 0.3.0 → 0.3.1
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 +1 -1
- data/lib/dock_test/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: ddbc6bf09a3e3aee3ee59fc7fe16a73d47202e35
|
4
|
+
data.tar.gz: 0b5b43e38eae33fa94c49012a413f96deaefddf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd770ca553635721a2d76a2e46b6b163021946c9462717c362666b3a24d24ebb975aec55d27d9ffcecf3dc04f60a5fa4bb272731ec4149277a315947c445202
|
7
|
+
data.tar.gz: 9577a4612aab39df5d8928f6fbab54e1b64d8b8dcff8ffe3e6bf05f0199f2747e32ade4c7c8030c2a7133f97f850d8b55445564d4048de03063107971c4e4579
|
data/lib/dock_test/assertions.rb
CHANGED
@@ -25,7 +25,7 @@ module Minitest::Assertions
|
|
25
25
|
def assert_response_xml_schema(schema_path)
|
26
26
|
schema = ::Nokogiri::XML::Schema(File.read(schema_path))
|
27
27
|
document = ::Nokogiri::XML(last_response.body)
|
28
|
-
assert schema.valid?(document), "The actual response does not match the schema defined in #{schema_path}"
|
28
|
+
assert document.root && schema.valid?(document), "The actual response does not match the schema defined in #{schema_path}"
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
data/lib/dock_test/version.rb
CHANGED