http_baseline 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +1 -1
- data/features/step_definitions/generic/response_steps.rb +3 -3
- data/lib/http_baseline/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: 35908a5a5c939ed707183f9dc3f18d410c5dca94
|
4
|
+
data.tar.gz: 054ffab816f9ec1d036ddbb14ad5cf41d5ea3897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4cb63fe8234bdd2cf4303fd28e1aad5afacdccef78721d6d82525e42f85f9f9eefb67cce4d6e3b8d60258033c1222c5aa23f7270e3527c47a41adbba371a6b8
|
7
|
+
data.tar.gz: 6247e8f1fc4c67c87eced475737a2437fabd6b3b7cf2e9dd10e28bf84e9851dd3c0e3348b59aa00478e83a15592e7847acb43e22400b801757b84a03e8831419
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# HTTP
|
2
2
|
|
3
3
|
### Status
|
4
|
-
[![Build Status](https://travis-ci.org/
|
4
|
+
[![Build Status](https://travis-ci.org/rlishtaba/http_baseline.svg?branch=master)](https://travis-ci.org/rlishtaba/http_baseline.svg?branch=master)
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
@@ -19,7 +19,7 @@ end
|
|
19
19
|
#
|
20
20
|
# * the JSON response should have "userId" matching with "[a-zA-Z0-9_-]{3,50}"
|
21
21
|
#
|
22
|
-
Then /^the JSON response should (not)?\s?have "([^"]*)" matching with "([
|
22
|
+
Then /^the JSON response should (not)?\s?have "([^"]*)" matching with "((?!["]).*)"$/ do |*options|
|
23
23
|
negative = options.shift
|
24
24
|
json_path = options.shift
|
25
25
|
regexp_string = options.shift
|
@@ -42,7 +42,7 @@ end
|
|
42
42
|
#
|
43
43
|
# * the JSON response should have "errCode" with the text "SYSTEM_ERROR"
|
44
44
|
#
|
45
|
-
Then /^the JSON response should (not)?\s?have "([^"]*)" with the text "([
|
45
|
+
Then /^the JSON response should (not)?\s?have "([^"]*)" with the text "((?!["]).*)"$/ do |negative, json_path, text|
|
46
46
|
json = @response.body
|
47
47
|
results = JsonPath.new(json_path).on(json).to_a.map(&:to_s)
|
48
48
|
|
@@ -68,7 +68,7 @@ end
|
|
68
68
|
#
|
69
69
|
# * the XML response should have "errCode" with the text "SYSTEM_ERROR"
|
70
70
|
#
|
71
|
-
Then /^the XML response should have "([^"]*)" with the text "([
|
71
|
+
Then /^the XML response should have "([^"]*)" with the text "((?!["]).*)"$/ do |xpath, text|
|
72
72
|
parsed_response = Nokogiri::XML(@response.body.to_s)
|
73
73
|
elements = parsed_response.xpath(xpath)
|
74
74
|
if self.respond_to?(:should)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_baseline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Lishtaba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|