rspec-hanami 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/hanami/request_helpers.rb +3 -3
- data/lib/rspec/hanami/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: 1e6e35f4f31853c6187f05389c927febee58dc6c8b39f3eb46490046d7606413
|
4
|
+
data.tar.gz: f1ecdd4748b5d7b24ca225dc369045d36d946bd0b040de7de212ab8061061458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75721328c58abaf8ac4b42bf6a846c8a5dc1d4178bdddc75dabc9822d85cd2456fa3a5ff7a6bc5e87a4237edaadb0ba643fdba7249df06710947e15713f8dc8
|
7
|
+
data.tar.gz: 108c45586351fb8eb13d70e52511a151d1bef8329f8176c45da462b428962453597e8cb591f2f42569a1af04a8ab933a526a21862efbc7ff148cebc6edb753e0
|
@@ -11,13 +11,13 @@ module RSpec
|
|
11
11
|
|
12
12
|
def env
|
13
13
|
default_env.tap do |env|
|
14
|
-
env['PATH_INFO'] = @path
|
15
|
-
env['REQUEST_METHOD'] = @method
|
14
|
+
env['PATH_INFO'] = @path
|
15
|
+
env['REQUEST_METHOD'] = @method
|
16
16
|
env['QUERY_STRING'] = "?#{@query_string}"
|
17
17
|
env['rack.input'] = StringIO.new(@params.to_json) if @params
|
18
18
|
|
19
19
|
@headers.each do |key, value|
|
20
|
-
rack_name = key.upcase.tr('-', '_')
|
20
|
+
rack_name = key.to_s.upcase.tr('-', '_')
|
21
21
|
env["HTTP_#{rack_name}"] = value
|
22
22
|
end
|
23
23
|
end
|
data/lib/rspec/hanami/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-hanami
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Davydov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|