protobuf-rspec 1.1.0 → 1.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: 66293065ca604ce49a6797a7df1461d25806d24b
4
- data.tar.gz: 5aea526dfa872497394ded4c9d5e89c57a395b86
3
+ metadata.gz: ef3e02facffe06b9c4573a56f96c3ee92272f64d
4
+ data.tar.gz: 2eff60221fd7a02a4e4097f12714433a3cb029a6
5
5
  SHA512:
6
- metadata.gz: d1ac13d2c0d6ac9860e111a57c6b3c022d4190e6c57c990d90878a15dcab6ab89380656849e5e0e421c569144d3c8a962a6a2b4772bc52af84c8cd8c106893bc
7
- data.tar.gz: f38ba901542656334cbf8b54a24c81f57b0957f5c2405dbf175be1e53bdca5ebb98fa842ba4bc570042afe69602722ee25fe4581a6032c0e42e6745b18beb68b
6
+ metadata.gz: 0542b7198ba65e640323f17a67c69b4267c119221727143584d5d21637ef5029d1ca449f95aa122f27f4701cd5db69b58f4cd6ac66f60b93ab7a3f03409bac91
7
+ data.tar.gz: 80ce5b49aaec8e876ebdb706733ccf36529b606bcf5e7eb7a573578e1ae7924af29b026f933fe2fcc1912569862d2c2adcd72a19b6a3df7916c31d3bf2edfd3a
@@ -289,9 +289,9 @@ module Protobuf
289
289
  #
290
290
  def mock_rpc(klass, method, callbacks = {})
291
291
  client = double('Client', :on_success => true, :on_failure => true)
292
- client.stub(method).and_yield(client)
292
+ allow(client).to receive(method).and_yield(client)
293
293
 
294
- klass.stub(:client).and_return(client)
294
+ allow(klass).to receive(:client).and_return(client)
295
295
 
296
296
  case
297
297
  when callbacks[:request] then
@@ -305,10 +305,10 @@ module Protobuf
305
305
  end
306
306
 
307
307
  success = callbacks[:success] || callbacks[:response]
308
- client.stub(:on_success).and_yield(success) unless success.nil?
308
+ allow(client).to receive(:on_success).and_yield(success) unless success.nil?
309
309
 
310
310
  failure = callbacks[:failure] || callbacks[:error]
311
- client.stub(:on_failure).and_yield(failure) unless failure.nil?
311
+ allow(client).to receive(:on_failure).and_yield(failure) unless failure.nil?
312
312
 
313
313
  client
314
314
  end
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module RSpec
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_runtime_dependency "protobuf", ">= 3.0.0"
22
- s.add_runtime_dependency "rspec", ">= 2.8", "< 4.0"
22
+ s.add_runtime_dependency "rspec", ">= 2.14", "< 4.0"
23
23
 
24
24
  s.add_development_dependency "rake"
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BJ Neilsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-03 00:00:00.000000000 Z
12
+ date: 2015-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: protobuf
@@ -31,7 +31,7 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '2.8'
34
+ version: '2.14'
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
37
  version: '4.0'
@@ -41,7 +41,7 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: '2.8'
44
+ version: '2.14'
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.0'
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project: protobuf-rspec
99
- rubygems_version: 2.4.6
99
+ rubygems_version: 2.4.8
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Protobuf RSpec helpers for testing services and clients. Meant to be used