flexmock 2.3.5 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/README.md +1 -1
- data/lib/flexmock/explicit_needed.rb +3 -1
- data/lib/flexmock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10c81d85395c9cb8d2f2ec418fa925152082a699
|
4
|
+
data.tar.gz: 2602ebd6fb2d2b77b6627ba42b1fbbadb31b6854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d68327dfd946bf6119291610513fd3a98718b031fc98742e5641177f78f51b10398fcb676832e61737cbf68b447de6cb0b726fa8fdc1b6e27591ab672826febc
|
7
|
+
data.tar.gz: 93bd5f2683c1bf3250986d82fbcce88afdd4f7f6866eb76a926ade7c07f27b9ea71759ddc864c58371cff9e984813fb1cef990c4dac663bd3d027e6f971531b7
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -945,7 +945,7 @@ MiniTest for asserting that mocked methods are actually called.
|
|
945
945
|
additional validations on supplied arguments. Default is no
|
946
946
|
additional validations.
|
947
947
|
|
948
|
-
* <b>on: <em>n</em>
|
948
|
+
* <b>on: <em>n</em></b>
|
949
949
|
|
950
950
|
Only apply the additional validations on the <em>n</em>'th
|
951
951
|
invocation of the matching method. Default is apply additional
|
@@ -29,8 +29,10 @@ class FlexMock
|
|
29
29
|
@expectation.mock = m
|
30
30
|
end
|
31
31
|
|
32
|
+
WHITELIST = [:with_signature_matching]
|
33
|
+
|
32
34
|
def method_missing(sym, *args, &block)
|
33
|
-
if explicit?
|
35
|
+
if explicit? || WHITELIST.include?(sym)
|
34
36
|
@expectation.send(sym, *args, &block)
|
35
37
|
else
|
36
38
|
fail NoMethodError, "Cannot stub methods not defined by the base class\n" +
|
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.6
|
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: 2017-02
|
12
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|