verified_double 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +5 -0
- data/features/CHANGELOG.markdown +5 -0
- data/lib/verified_double.rb +2 -1
- data/lib/verified_double/is_an_any_instance_double.rb +12 -0
- data/lib/verified_double/rspec_mocks_syntax_overrides.rb +1 -1
- data/lib/verified_double/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d1eb25be783652e30676de88ae7f8015cff10b6
|
4
|
+
data.tar.gz: b85e9d5184092922884ea5fe2da0d88006b4ff26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cb478d8d914bf335840d899141f476da301a2fa827bc6e633198bd66284bfb32203125a056f021bd77aec0b5ce017ec12f21642b508e2c7c2694f6316b87166
|
7
|
+
data.tar.gz: 4154b09a4cea4f65b23116ed916d5191c82f8c4a466ba07314b170d629c775e2cf8b6f2fa33d68affdbbea4cdf03f969d348f28f2fc7d6981f36c807bea41712
|
data/CHANGELOG.markdown
CHANGED
data/features/CHANGELOG.markdown
CHANGED
data/lib/verified_double.rb
CHANGED
@@ -5,6 +5,7 @@ require 'verified_double/boolean'
|
|
5
5
|
require 'verified_double/can_record_interactions'
|
6
6
|
require 'verified_double/example_metadata'
|
7
7
|
require 'verified_double/is_a_class_double'
|
8
|
+
require 'verified_double/is_an_any_instance_double'
|
8
9
|
require 'verified_double/is_an_instance_double'
|
9
10
|
require 'verified_double/matchers'
|
10
11
|
require 'verified_double/method_signature'
|
@@ -26,7 +27,7 @@ module VerifiedDouble
|
|
26
27
|
|
27
28
|
def self.any_instance_of(klass)
|
28
29
|
d = klass.any_instance
|
29
|
-
d.extend(VerifiedDouble::
|
30
|
+
d.extend(VerifiedDouble::IsAnAnyInstanceDouble)
|
30
31
|
VerifiedDouble.record(d)
|
31
32
|
end
|
32
33
|
|
@@ -11,7 +11,7 @@ module VerifiedDouble
|
|
11
11
|
|
12
12
|
def expect(*args)
|
13
13
|
if args[0].respond_to?(:can_record_interactions?)
|
14
|
-
if args[0].
|
14
|
+
if args[0].respond_to?(:verified_any_instance_double?)
|
15
15
|
raise "VerifiedDouble.any_instance_of doesn't support yet Rspec's " \
|
16
16
|
"expect/allow syntax. Please use should_receive."
|
17
17
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: verified_double
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- George Mendoza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -168,6 +168,7 @@ files:
|
|
168
168
|
- lib/verified_double/can_record_interactions.rb
|
169
169
|
- lib/verified_double/example_metadata.rb
|
170
170
|
- lib/verified_double/is_a_class_double.rb
|
171
|
+
- lib/verified_double/is_an_any_instance_double.rb
|
171
172
|
- lib/verified_double/is_an_instance_double.rb
|
172
173
|
- lib/verified_double/matchers.rb
|
173
174
|
- lib/verified_double/method_signature.rb
|