rspec-request_describer 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rspec/request_describer.rb +4 -4
- data/lib/rspec/request_describer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7860d4f2fb580876b71c84c3c4b84f844644af11
|
4
|
+
data.tar.gz: c9e1bf92c070cdaa7b4b76c30cb31459b11bc54f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a64cf031ee613b3c12080fcda4b927c3f8ae9fd3f678aa54c53c106b2965c062198d5996a64aca08dc949b50ce1bbf58f578dd5c5dbfba4821df8dbda5dbb2c5
|
7
|
+
data.tar.gz: b0adab9b3884366e6024bacfbd3b6d2ea4a5d1671a7eb3963344294ecc734aa6c991217ab5db9cb6eec1dbc85d7ebd775275710320052392e9ca115d53873c5d
|
data/CHANGELOG.md
CHANGED
@@ -3,9 +3,9 @@ require "rspec/request_describer/version"
|
|
3
3
|
module RSpec
|
4
4
|
module RequestDescriber
|
5
5
|
RESERVED_HEADER_NAMES = %w(
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
content-type
|
7
|
+
host
|
8
|
+
https
|
9
9
|
)
|
10
10
|
|
11
11
|
SUPPORTED_METHODS = %w(
|
@@ -50,7 +50,7 @@ module RSpec
|
|
50
50
|
|
51
51
|
let(:env) do
|
52
52
|
headers.inject({}) do |result, (key, value)|
|
53
|
-
key = "HTTP_" + key unless RESERVED_HEADER_NAMES.include?(key)
|
53
|
+
key = "HTTP_" + key unless RESERVED_HEADER_NAMES.include?(key.downcase)
|
54
54
|
key = key.gsub("-", "_").upcase
|
55
55
|
result.merge(key => value)
|
56
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-request_describer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.6.11
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Force some rules to write self-documenting request spec.
|