soaspec 0.2.31 → 0.2.32
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/ChangeLog +4 -0
- data/README.md +2 -1
- data/lib/soaspec/cucumber/generic_steps.rb +7 -0
- data/lib/soaspec/generator/Gemfile.erb +2 -2
- data/lib/soaspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6cfad75ccf8e0eea76dc3b2accf234b9c860fcce91f92466ed16e42c299c547
|
|
4
|
+
data.tar.gz: 8d3f05f4adb84a05d91337bf7dcf37a46b0021855ad52d7328b16ded882fa1f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a1ed892b7f3c7d963f9b5940bb8f9ea1a5a051ac636900a2a2a99fac6ff39d2e8147aa599f81e65c72a2f85d473f1ddcde2333b985d595c692801736c207eaf
|
|
7
|
+
data.tar.gz: e76e366ac6580ba7aba2def7dc4d39765d5be62095af24493fa2da10cb1087cfcf0038b51ce2671007aa0addc35b3d413b1dd02c26d1eb2de3041da08dc517b0
|
data/ChangeLog
CHANGED
data/README.md
CHANGED
|
@@ -161,7 +161,8 @@ end
|
|
|
161
161
|
|
|
162
162
|
### Cucumber
|
|
163
163
|
|
|
164
|
-
If you're using `Cucumber` then I would
|
|
164
|
+
If you're using `Cucumber` for testing a single API call then I would
|
|
165
|
+
recommend the following
|
|
165
166
|
|
|
166
167
|
In the `Given` (or background) specify the `Exchange` object.
|
|
167
168
|
Either store this as an instance variable (e.g `@exchange`) or use the global `Soaspec.last_exchange` (which is automatically set).
|
|
@@ -33,6 +33,13 @@ Given 'I use the path {word}' do |suburl|
|
|
|
33
33
|
current_exchange.suburl = suburl
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
# Add onto the base_url to make a complete url for the test
|
|
37
|
+
# @example base_url is 'http://petstore.swagger.io/v2' and I want a post to 'http://petstore.swagger.io/v2/basic.json'
|
|
38
|
+
# I use the path 'basic.json'
|
|
39
|
+
Given 'I use the path {string}' do |suburl|
|
|
40
|
+
current_exchange.suburl = suburl
|
|
41
|
+
end
|
|
42
|
+
|
|
36
43
|
# Add a query parameter for http 'get' requests. e.g. will add '?filter_key=filter_value' onto URL
|
|
37
44
|
# @example To create a query for '?status=sold'
|
|
38
45
|
# And I filter 'status' by 'sold'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
|
-
gem 'data_magic'
|
|
4
|
-
gem 'require_all'
|
|
3
|
+
gem 'data_magic' # Used to load test data from YAML easily
|
|
4
|
+
gem 'require_all' # Used to make loading the library folder easy
|
|
5
5
|
gem 'rake'
|
|
6
6
|
<%= @cucumber ? "gem 'cucumber'" : "gem 'rspec'" %>
|
|
7
7
|
<%= "gem 'rspec_junit_formatter'" if options[:ci] == 'jenkins' %>
|
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.2.
|
|
4
|
+
version: 0.2.32
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SamuelGarrattIQA
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-08-
|
|
11
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|