soaspec 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/Gemfile.lock +1 -1
- data/lib/soaspec/exchange.rb +2 -0
- data/lib/soaspec/matchers.rb +12 -0
- data/lib/soaspec/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: 255d203844878ea2e75b0ef6ac282848d2363dbb
|
4
|
+
data.tar.gz: 99b6c40e7ba36d670fc7e16bbe1eee5760457082
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dbd21eb8c38debaf22104b30523eb017d367586c3b0a1e530216b63a0fb68da351318941c138925403ebe07121a3f12f3d32794adc7e015e1a89c2d0a64cd46
|
7
|
+
data.tar.gz: 3e299cd2d4a87dbf2cf1e9e36e4207840ce96947a510a686a73abad6803e809d3f985f793f1dfdbfe7efd5c39c4f9a2741bbe4109f5d7be959839758c79c6e90
|
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
Version 0.0.22 / 2018-2-15
|
2
|
+
* Enhancements
|
3
|
+
* Created new 'include_in_body' matcher to find value anywhere in response body (which could be a substring of an element)
|
4
|
+
|
1
5
|
Version 0.0.21 / 2018-1-29
|
2
6
|
* Enhancements
|
3
7
|
* Added soaspec-generate - still in POC mode to generate files from a WSDL.
|
data/Gemfile.lock
CHANGED
data/lib/soaspec/exchange.rb
CHANGED
data/lib/soaspec/matchers.rb
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
require_relative 'hash_methods'
|
3
3
|
require_relative 'xpath_not_found'
|
4
4
|
|
5
|
+
# TODO: Mathcers are specific to SOAP. Make generic for REST and others by using actual.api_class
|
6
|
+
|
5
7
|
RSpec::Matchers.define :contain_value do |expected|
|
6
8
|
match do |actual|
|
7
9
|
expect(actual.response.body.include_value?(expected)).to be true
|
@@ -12,6 +14,16 @@ RSpec::Matchers.define :contain_value do |expected|
|
|
12
14
|
end
|
13
15
|
end
|
14
16
|
|
17
|
+
RSpec::Matchers.define :include_in_body do |expected|
|
18
|
+
match do |actual|
|
19
|
+
expect(actual.response.to_xml.to_s.include?(expected)).to be true
|
20
|
+
end
|
21
|
+
|
22
|
+
failure_message do |actual|
|
23
|
+
"expected that #{actual.response.body.to_xml} would contain value #{expected}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
15
27
|
RSpec::Matchers.define :contain_key do |expected|
|
16
28
|
match do |actual|
|
17
29
|
expect(actual.response.body.include_key?(expected)).to be true
|
data/lib/soaspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soaspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SamuelGarrattIQA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|