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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daa010e506d5bac557ecd6d866e90783556f0f47
4
- data.tar.gz: e185e88d2f88a5337267d50598c34616242150a6
3
+ metadata.gz: 8d1eb25be783652e30676de88ae7f8015cff10b6
4
+ data.tar.gz: b85e9d5184092922884ea5fe2da0d88006b4ff26
5
5
  SHA512:
6
- metadata.gz: 3e01c603415dd87dfcc15856c1f70aa1f75a0e9d1b8872480949c8da229cb9bd69ae6661b7db837db29abc94c44563e962d8f8457613c3dfd5b72fe5315989a4
7
- data.tar.gz: fbc6ebaf22d52a0ea73f862c7b273eeda798eb2da085bd8c5bb0c0d03544efe3cab35066bf498836acfbeb3125cc266a097b6cfe19b5f7102aaadb6cffef481f
6
+ metadata.gz: 6cb478d8d914bf335840d899141f476da301a2fa827bc6e633198bd66284bfb32203125a056f021bd77aec0b5ce017ec12f21642b508e2c7c2694f6316b87166
7
+ data.tar.gz: 4154b09a4cea4f65b23116ed916d5191c82f8c4a466ba07314b170d629c775e2cf8b6f2fa33d68affdbbea4cdf03f969d348f28f2fc7d6981f36c807bea41712
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ 0.5.2 - 2013-12-26
2
+ ------------------
3
+
4
+ * Fix: use of is_s? in expect method causes tests to fail.
5
+
1
6
  0.5.1 - 2013-12-25
2
7
  ------------------
3
8
 
@@ -1,3 +1,8 @@
1
+ 0.5.2 - 2013-12-26
2
+ ------------------
3
+
4
+ * Fix: use of is_s? in expect method causes tests to fail.
5
+
1
6
  0.5.1 - 2013-12-25
2
7
  ------------------
3
8
 
@@ -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::IsAnInstanceDouble)
30
+ d.extend(VerifiedDouble::IsAnAnyInstanceDouble)
30
31
  VerifiedDouble.record(d)
31
32
  end
32
33
 
@@ -0,0 +1,12 @@
1
+ require 'verified_double/is_an_instance_double'
2
+
3
+ module VerifiedDouble
4
+ module IsAnAnyInstanceDouble
5
+ include IsAnInstanceDouble
6
+
7
+ def verified_any_instance_double?
8
+ true
9
+ end
10
+ end
11
+ end
12
+
@@ -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].is_a?(RSpec::Mocks::AnyInstance::Recorder)
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
@@ -1,3 +1,3 @@
1
1
  module VerifiedDouble
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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-25 00:00:00.000000000 Z
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