flexmock 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flexmock/partial_mock.rb +5 -1
- data/lib/flexmock/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d1c60d1a5f14850c56b0e8d61f4521fb1c9e060
|
4
|
+
data.tar.gz: 94039089f129be52329e975e587761ea2bf633f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af6c7bdccd67fa9583623d3f3fb6f052a682e1e408a8fc091b907c18814f891e5e1a80c9766d0136ca19eddfc5df891a3f51f16225872778e14a6b6438f2072e
|
7
|
+
data.tar.gz: 8fbbf4e0ecf57fde540642e6978d8bcb3d67ef0e532fb3437791cd760a83266df197df5e5fd38f80a3fc8bd91c9663c80c68aef656a2a9b061ba8d8376849dfb
|
@@ -92,7 +92,7 @@ class FlexMock
|
|
92
92
|
# can act like a mock.
|
93
93
|
|
94
94
|
MOCK_METHODS = [
|
95
|
-
:should_receive, :new_instances,
|
95
|
+
:should_receive, :new_instances, :should_expect,
|
96
96
|
:should_receive_with_location,
|
97
97
|
:flexmock_get, :flexmock_teardown, :flexmock_verify,
|
98
98
|
:flexmock_received?, :flexmock_calls, :flexmock_find_expectation,
|
@@ -161,6 +161,10 @@ class FlexMock
|
|
161
161
|
flexmock_define_expectation(caller, *args)
|
162
162
|
end
|
163
163
|
|
164
|
+
def should_expect(*args)
|
165
|
+
yield Recorder.new(self)
|
166
|
+
end
|
167
|
+
|
164
168
|
# Invoke the original of a mocked method
|
165
169
|
#
|
166
170
|
# Usually called in a #and_return statement
|
data/lib/flexmock/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Weirich
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -190,4 +190,3 @@ signing_key:
|
|
190
190
|
specification_version: 4
|
191
191
|
summary: Simple and Flexible Mock Objects for Testing
|
192
192
|
test_files: []
|
193
|
-
has_rdoc:
|