gruf-rspec 1.1.1 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67653f295a43e0511c3deef9c839070f9293426d90b42d830504b50226aef9b9
4
- data.tar.gz: c0d73dd79c352201c9f76fff793564da5041da1f84bcb7dd5149440e182775fc
3
+ metadata.gz: 24eb3d2102e1e4e7ff7594b4f40f7c977a2ce570953bcfd82b6a3e7c111a0f7b
4
+ data.tar.gz: 3abada32293c924b85fe8912fcdf9719979d6b3d63242a3effff6f1e57cbf20a
5
5
  SHA512:
6
- metadata.gz: 62e5198116b13b3fb6a8c54dd3c4f0c7c89ac1bc66252ba0a33080891711a5c58adc019f2f2191fa75c083c08d2ce9b2ff2463f466b67995a467230e4dd66c53
7
- data.tar.gz: c84fc544e5f1275974adaef0e2f1c28aeafc5399145c749d28eb57cd780bda9cd9bae8646f204208ed4e3e5f3563cc8727c9b2f354862e3f4a35c36d8ca5cc80
6
+ metadata.gz: '098df6a50d7acca62108fe7120a3256b7751e89a03b83fc240c8304ce7f27572bba7e7ef00f4d31f78fe88d1b7eb9b67434b0b3e8f0cab25506c3348eef5af90'
7
+ data.tar.gz: 5e1c2094fd1776bc14c3627dedaec5b09ca96e67308559079201c10d4d9fb1bc7dc220e7c96606951cd668503fc2b85fcbfce0f96bb13f8d6dcbb00dea1b0487
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@ Changelog for the gruf-rspec gem.
2
2
 
3
3
  ### Pending release
4
4
 
5
+ ### 1.1.2
6
+
7
+ - Add peer expectation to active_call stub
8
+
5
9
  ### 1.1.1
6
10
 
7
11
  - Fix autoloading issue in certain Rails environments
@@ -27,7 +27,15 @@ module Gruf
27
27
  #
28
28
  def grpc_active_call(options = {})
29
29
  md = _build_active_call_metadata(options)
30
- double(:grpc_active_call, metadata: md, output_metadata: options.fetch(:output_metadata, {}))
30
+ double(
31
+ :grpc_active_call,
32
+ metadata: md,
33
+ output_metadata: options.fetch(:output_metadata, {}),
34
+ # gRPC calls this on initialization of an GRPC::ActiveCall now, so we need to provide stubbed value
35
+ # (defaulting to nil is fine, but we provide an option to override)
36
+ # @see https://github.com/grpc/grpc/blob/v1.74.0/src/ruby/lib/grpc/generic/active_call.rb#L113
37
+ peer: options.fetch(:peer, nil)
38
+ )
31
39
  end
32
40
 
33
41
  private
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Gruf
19
19
  module Rspec
20
- VERSION = '1.1.1'
20
+ VERSION = '1.1.2'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gruf-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick