rspec-request_describer 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 1fbba3a8b504524cd2be51896a4bed2f0e4888a5
4
- data.tar.gz: a06d33a864a611809109a87124e28a729fe4ecb5
3
+ metadata.gz: ca941a46b240db6e93a089851b119abe12d87f32
4
+ data.tar.gz: 5928dde3da34b914593e271cd01ca8ead883f5df
5
5
  SHA512:
6
- metadata.gz: 5bb3a46ef80bea351d6917b4149863646b51203af17bec98428db412e00d9904c07c94ee860711f8a1b0f126ca3eaf58f5ca3e9262daa390f42eeff6affe2bd5
7
- data.tar.gz: 99d69291469fbba7d39af7781a27f81c91274254f7bc4c0d83b511341c979fe0f3a9a5f8f5ef7fd9508cd8011ea4560e84cbf1a314ebac8fff2cb5e120a8a7a0
6
+ metadata.gz: 1c4e8dda0f084369e0319d4f9b351d474efe843555da89e68cd3028ad45c3ea00b9dc6b9f051b1291f0957acdbf2d4ec39bbbc2c1feac929f7d6844eb2a6c0e0
7
+ data.tar.gz: 1819c8db1f0a7db1350876206685be71d0979745c92d422eb36552dfec45f9201e10cb8f0047df69892b391ff79449f6457f938f58b3f10f12eb99da04502177
@@ -1,3 +1,6 @@
1
+ ## 0.1.1
2
+ - Prevent warning for Rails 5 (Thx @mrkn, #9)
3
+
1
4
  ## 0.1.0
2
5
  - Rename `method` with `http_method` (Thx @yujinakayama, #8)
3
6
 
@@ -22,8 +22,14 @@ module RSpec
22
22
  send_request
23
23
  end
24
24
 
25
- let(:send_request) do
26
- send http_method, path, request_body, env
25
+ if (ActionDispatch::Integration::Session.instance_method(:process_with_kwargs) rescue false)
26
+ let(:send_request) do
27
+ send http_method, path, params: request_body, headers: env
28
+ end
29
+ else
30
+ let(:send_request) do
31
+ send http_method, path, request_body, env
32
+ end
27
33
  end
28
34
 
29
35
  let(:request_body) do
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module RequestDescriber
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-09 00:00:00.000000000 Z
11
+ date: 2016-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler