cucumber-http 0.5.0 → 0.5.1

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: 3f1be1b47ea1c0772213878f14f19516aa3b6479905e3f82a8e77b12798a6076
4
- data.tar.gz: efa78abf389fdf1c32d2e7bd5b48dbfabcd44acb7a90f20dd8c0cfff5fbfaee0
3
+ metadata.gz: 70917cc0394f65db06b914e26836bf920b17fc5120127679a53036d379ebe4c1
4
+ data.tar.gz: e0f37cc9f42f5ccaae713d2552fbd94de84f8d36c1384f981666bb0556515298
5
5
  SHA512:
6
- metadata.gz: 54ebb323e49b717a1780eba422d971eddaa42a0140cd77858af510f60da0c43788d7dc65bc85e3e8b8bac2f322074acf3ba7b98c0930c296009527e17320950e
7
- data.tar.gz: df4ac0a1b5dae08baa6adcb9cc6155ce7fb1ccac4b6cadebc7f1ee3bed0458d622b95935e7a6fd370a4b5459b19c5e35c14404926dc8583e1063909f4f8b626b
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, accept_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/#{accept_type.downcase} |
40
+ | Content-Type | #{content_type} |
41
+ | Accept | application/json |
42
42
  }
43
43
  end
44
44
 
45
- Given /^I send and accept JSON$/ do |type|
45
+ Given /^I send and accept JSON$/ do
46
46
  steps %Q{
47
47
  Given I set headers:
48
- | Content-Type | application/#{type.downcase} |
49
- | Accept | application/#{type.downcase} |
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 |type|
103
+ Then /^the response body should be valid JSON$/ do
104
104
  expect { JSON.parse(response[:body]) }.not_to raise_error
105
105
  end
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module Http
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  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.0
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-08 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber