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 +4 -4
- data/lib/protobuf/rspec/helpers.rb +4 -4
- data/lib/protobuf/rspec/version.rb +1 -1
- data/protobuf-rspec.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef3e02facffe06b9c4573a56f96c3ee92272f64d
|
4
|
+
data.tar.gz: 2eff60221fd7a02a4e4097f12714433a3cb029a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
292
|
+
allow(client).to receive(method).and_yield(client)
|
293
293
|
|
294
|
-
klass.
|
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.
|
308
|
+
allow(client).to receive(:on_success).and_yield(success) unless success.nil?
|
309
309
|
|
310
310
|
failure = callbacks[:failure] || callbacks[:error]
|
311
|
-
client.
|
311
|
+
allow(client).to receive(:on_failure).and_yield(failure) unless failure.nil?
|
312
312
|
|
313
313
|
client
|
314
314
|
end
|
data/protobuf-rspec.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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
|