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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf5f3165219606b712a35db0498e8bedb654c882
4
- data.tar.gz: 02ad1a9211ef1f68902556e2a9d31592c9661589
3
+ metadata.gz: 7d1c60d1a5f14850c56b0e8d61f4521fb1c9e060
4
+ data.tar.gz: 94039089f129be52329e975e587761ea2bf633f1
5
5
  SHA512:
6
- metadata.gz: ec5fe66fc46cfd36552de7f4b3e6cd6aa0a573bcc83698c893aa622c0d9e11e5713de25c543357fcf6527ecb5a831bde99260dc2d7820bb776194be29d5752e7
7
- data.tar.gz: 1219831d3ecc11ae9d472b4ad2269868b706d1cf1c46047786d9cf0ea91074c926d005e068b630002a4ae8755f0a09101d3da6db20af0f17d61ef652472d31e9
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
@@ -1,3 +1,3 @@
1
1
  class FlexMock
2
- VERSION = "2.3.2"
2
+ VERSION = "2.3.3"
3
3
  end
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.2
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-08 00:00:00.000000000 Z
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: