soaspec 0.2.31 → 0.2.32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cb8ec16da02e231fc2a5a23b54216ad7f8680eb3fb081dbd518c79044b6fbd1
4
- data.tar.gz: 69b1dd86e08bd1a6fdf1a3787edd1e1f9514a2b97dea58c8d34e7cb3c463fbc0
3
+ metadata.gz: d6cfad75ccf8e0eea76dc3b2accf234b9c860fcce91f92466ed16e42c299c547
4
+ data.tar.gz: 8d3f05f4adb84a05d91337bf7dcf37a46b0021855ad52d7328b16ded882fa1f5
5
5
  SHA512:
6
- metadata.gz: 01a793cf1929edcfbe126582688c520eeca5adef2b30de555a3262751b8ae05e7d5425a6e4d27be0b5b90bade3cd8064faa034c22c4f0e2e7b950b5aec4cdc8c
7
- data.tar.gz: 85db070d27e125310d237f69ad524a40ffb81acdb0b1397b378d6a8839959dff4c549ec3ccd8f2f4189f6e89a59c66dd8df52d9d274137a0673ca7115d4f9b61
6
+ metadata.gz: 0a1ed892b7f3c7d963f9b5940bb8f9ea1a5a051ac636900a2a2a99fac6ff39d2e8147aa599f81e65c72a2f85d473f1ddcde2333b985d595c692801736c207eaf
7
+ data.tar.gz: e76e366ac6580ba7aba2def7dc4d39765d5be62095af24493fa2da10cb1087cfcf0038b51ce2671007aa0addc35b3d413b1dd02c26d1eb2de3041da08dc517b0
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.2.32
2
+ * Enhancement
3
+ * Added a cucumber generic step for a subpath
4
+
1
5
  Version 0.2.31
2
6
  * Bug fix
3
7
  * `soaspec generate` was always creating basic auth even when not specified
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 recommend the following
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' %>
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Soaspec
4
4
  # @return [String] Version of the gem
5
- VERSION = '0.2.31'
5
+ VERSION = '0.2.32'
6
6
  end
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.31
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-26 00:00:00.000000000 Z
11
+ date: 2019-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler