rspec-mocks 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9d8779911a17ba0cd7be286a331dbce8a9eb16d
4
- data.tar.gz: 95b80b746108385aa0dbcdb3e33bc1800c7acef4
3
+ metadata.gz: 392038fa8cfca9fe1c25e2285b52744941fe41d9
4
+ data.tar.gz: 3287a586cb0ea0b1b658df9e5ec8174973a0f420
5
5
  SHA512:
6
- metadata.gz: e0bd6fa86ce798e51d04e3930bea991d7d7f7641017aadd486e6c1d46cc88b365ea62c79b95d475202b227fbb24e05a977f80e61b2183ca4a40219568b144a88
7
- data.tar.gz: 7c38636d51a47b79e4880edc845c4ec2c18294b39a1ec123d4bcad3b371ca52f3f1137f170f20dc1904c04ce35597650447f9168db886adf07444217b878492e
6
+ metadata.gz: b41e95654ea7db54ca337f9a1f2854b62c22a994f738cd4cacb0da48b2eee29385e69b53f64dfb6206d55905ca64a0c4cc964ddad4455c0a64e8202d694822c7
7
+ data.tar.gz: 35964167001dc473f49efc12569e2df467c28ac050cdc5e7c2abdf1c452bd82faa2cd5d0835ebc29dd93400dfc3ca94731170fd5d3c358dd4ab7022c031b6dd7
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,12 @@
1
+ ### 3.1.2 / 2014-09-26
2
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.1...v3.1.2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Provide a clear error message when you use `allow(...)` with the
7
+ `have_received` matcher (they are not intended to be used together
8
+ and previously caused an odd internal failure in rspec-mocks). (Jon Rowe, #788).
9
+
1
10
  ### 3.1.1 / 2014-09-18
2
11
  [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.0...v3.1.1)
3
12
 
@@ -54,6 +54,12 @@ module RSpec
54
54
  end
55
55
  end
56
56
 
57
+ def setup_allowance(_subject, &_block)
58
+ raise RSpec::Mocks::MockExpectationError,
59
+ "Using allow(...) with the `have_received` matcher is not " \
60
+ "supported as it would have no effect."
61
+ end
62
+
57
63
  private
58
64
 
59
65
  def expect
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec mocks.
4
4
  module Version
5
5
  # Version of RSpec mocks currently in use in SemVer format.
6
- STRING = '3.1.1'
6
+ STRING = '3.1.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-mocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
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-18 00:00:00.000000000 Z
36
+ date: 2014-09-26 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rspec-support
@@ -179,6 +179,6 @@ rubyforge_project: rspec
179
179
  rubygems_version: 2.2.2
180
180
  signing_key:
181
181
  specification_version: 4
182
- summary: rspec-mocks-3.1.1
182
+ summary: rspec-mocks-3.1.2
183
183
  test_files: []
184
184
  has_rdoc:
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- |P���4 �p��8ob�#�)���D�</�J
1
+ L6=��K��D<!XU�״C�n�9>$C� #��4��;�R����VuP��{}ʹ��h9_Fh�!�!`\,�[���4 �.QR���wF�?�x�iHk�ڀ���Y���x1��'��fG��+ӓo���0%���1:�~��
2
+ ��v�E!��~Q�����,�(���� aո��[Q�T��m���lr�ɅV����k�I��3Β�����.�ov@j�9�L� �V0�T猝2�-I�P����eRqJ�bd�<IY)�