cucumber-http 0.5.0 → 0.5.1
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/cucumber/http/http_steps.rb +7 -7
- data/lib/cucumber/http/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: 70917cc0394f65db06b914e26836bf920b17fc5120127679a53036d379ebe4c1
|
|
4
|
+
data.tar.gz: e0f37cc9f42f5ccaae713d2552fbd94de84f8d36c1384f981666bb0556515298
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d046821b5b54f7a6ed66c5af93508960c3f5191255f9bae74ab683443434c91a87e817d7c5637c3925b1695682dd835a6e2ce53bc4dba53f020df6e9ee98c3a0
|
|
7
|
+
data.tar.gz: cf9804b017bb0c10f7ffa132af654fe0d1749b95d5fa06cd18a81e16c40529ca9adf035e385879bbfc35e74e1dd69f047843eeb58c6d1609c5d615934b35856e
|
|
@@ -34,19 +34,19 @@ Given /^I send "(.*?)" and accept "(.*?)"$/ do |content_type, accept_type|
|
|
|
34
34
|
}
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
Given /^I send "(.*?)" and accept JSON$/ do |content_type
|
|
37
|
+
Given /^I send "(.*?)" and accept JSON$/ do |content_type|
|
|
38
38
|
steps %Q{
|
|
39
39
|
Given I set headers:
|
|
40
|
-
| Content-Type | #{content_type}
|
|
41
|
-
| Accept | application
|
|
40
|
+
| Content-Type | #{content_type} |
|
|
41
|
+
| Accept | application/json |
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
Given /^I send and accept JSON$/ do
|
|
45
|
+
Given /^I send and accept JSON$/ do
|
|
46
46
|
steps %Q{
|
|
47
47
|
Given I set headers:
|
|
48
|
-
| Content-Type | application
|
|
49
|
-
| Accept | application
|
|
48
|
+
| Content-Type | application/json |
|
|
49
|
+
| Accept | application/json |
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -100,6 +100,6 @@ Then /^the response status should( not)? be "(#{CAPTURE_INTEGER})"$/ do |negativ
|
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
Then /^the response body should be valid JSON$/ do
|
|
103
|
+
Then /^the response body should be valid JSON$/ do
|
|
104
104
|
expect { JSON.parse(response[:body]) }.not_to raise_error
|
|
105
105
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cucumber-http
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kristof Willaert
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cucumber
|