rspec-expectations 3.1.0 → 3.1.1

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: 0d67d8e69dfda8789a69783ab55ae688851cd637
4
- data.tar.gz: b7eeed6108dc7341331d64f62e1c057c08545c9c
3
+ metadata.gz: 8dd7955a9011398c45ea3e013003f609e10a45d3
4
+ data.tar.gz: ef807b08b3196f44fbdb0713c932e9a4fa55b5e4
5
5
  SHA512:
6
- metadata.gz: 5b49a1de8f140c99b2bf9fda0af0382c6381f44dfb568626720297c5cd83a9eff033facefa2ff4f312c81c73e9257499bbee9cfe1010f527763d241c8155e2f5
7
- data.tar.gz: c054e2dee14f838f498918c7b3964381c633fa7d8552242fc16d3d267300cc071aad83e6ef3eedbedda9a9de63553bc27d0d15099fe93c6221eb087b9e02748e
6
+ metadata.gz: 748b7325cf0703054bb349274b192f958f1a4e86d42089ea1583eb93180ae4a22be0c90ed19e578d5dee32ec241c12a932e262df09b74c426a4295495433d21c
7
+ data.tar.gz: d108d4262782769604c8d343dfa0b5aefe0f119237ca820422b836b45ccbe846e872c71f34324e733fd09ca398b1268945d2a680fa0e6aae7e976491aa9ec8dc
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,12 @@
1
+ ### 3.1.1 / 2014-09-15
2
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.0...v3.1.1)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix regression in `all` matcher in 3.1.0 that prevented it from
7
+ working on objects that are not `Enumerable` but do implement
8
+ `each_with_index` (such as an ActiveRecord proxy). (Jori Hardman, #647)
9
+
1
10
  ### 3.1.0 / 2014-09-04
2
11
  [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.4...v3.1.0)
3
12
 
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.1.0'
5
+ STRING = '3.1.1'
6
6
  end
7
7
  end
8
8
  end
@@ -21,8 +21,8 @@ module RSpec
21
21
  # @api private
22
22
  # @return [String]
23
23
  def failure_message
24
- unless enumerable?
25
- return "#{improve_hash_formatting(super)}, but was not enumerable"
24
+ unless iterable?
25
+ return "#{improve_hash_formatting(super)}, but was not iterable"
26
26
  end
27
27
 
28
28
  all_messages = [improve_hash_formatting(super)]
@@ -41,7 +41,7 @@ module RSpec
41
41
  private
42
42
 
43
43
  def match(_expected, _actual)
44
- return false unless enumerable?
44
+ return false unless iterable?
45
45
 
46
46
  index_failed_objects
47
47
  failed_objects.empty?
@@ -76,8 +76,8 @@ module RSpec
76
76
  super
77
77
  end
78
78
 
79
- def enumerable?
80
- Enumerable === @actual
79
+ def iterable?
80
+ @actual.respond_to?(:each_with_index)
81
81
  end
82
82
  end
83
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-expectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -33,7 +33,7 @@ cert_chain:
33
33
  1yHC1AcSYpvi2dAbOiHT5iQF+krm4wse8KctXgTNnjMsHEoGKulJS2/sZl90jcCz
34
34
  muA=
35
35
  -----END CERTIFICATE-----
36
- date: 2014-09-05 00:00:00.000000000 Z
36
+ date: 2014-09-15 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rspec-support
@@ -205,6 +205,6 @@ rubyforge_project: rspec
205
205
  rubygems_version: 2.2.2
206
206
  signing_key:
207
207
  specification_version: 4
208
- summary: rspec-expectations-3.1.0
208
+ summary: rspec-expectations-3.1.1
209
209
  test_files: []
210
210
  has_rdoc:
metadata.gz.sig CHANGED
Binary file