soaspec 0.0.10 → 0.0.11
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 +4 -4
- data/lib/soaspec/matchers.rb +5 -0
- data/lib/soaspec/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: b8c8aa2d7043e85afff8aa33c899d6e07ea9c9f2
|
|
4
|
+
data.tar.gz: 5a0e202e250073d91b16577e84f79ab6d39160dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d57d63f7456ae2e9b4f26884449e63ff0051ba7461182fb42d2bf108686576b388679cd8e5dd20dee7fe141db97973f6b1d87643a5398f789d3f85fe8ded562
|
|
7
|
+
data.tar.gz: 0be433e751ff4194e4c360d7dd285cf03e9333ef05481d2ea4220574b85b254c20c3c7a9366af96e56467bb310d93fbdfcbdf000bbe303d397b6f53c5721314c
|
data/lib/soaspec/matchers.rb
CHANGED
|
@@ -32,4 +32,9 @@ RSpec::Matchers.define :have_xpath_value do |expected_hash|
|
|
|
32
32
|
expected_hash = Hash[*expected_hash.flatten] if expected_hash.is_a?(Array) # For some reason Array was occuring
|
|
33
33
|
expect(exchange[expected_hash.keys.first]).to eq expected_hash.values.first
|
|
34
34
|
end
|
|
35
|
+
|
|
36
|
+
failure_message do |actual|
|
|
37
|
+
"expected that xpath '#{expected_hash.keys.first}' has value '#{expected_hash.values.first}' but was '#{actual[expected_hash.keys.first]}'"
|
|
38
|
+
end
|
|
39
|
+
|
|
35
40
|
end
|
data/lib/soaspec/version.rb
CHANGED