rspec-mocks 3.5.0.beta3 → 3.5.0.beta4

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: 120ba58f79094ffbb0cbc266d92aaf95e85dfb3e
4
- data.tar.gz: b0550ddbdf1d1d12b5c2ced552eeed6e8dd9fe4d
3
+ metadata.gz: 25e619f239f393038a41c5ae5283931d45177060
4
+ data.tar.gz: bcf202094e33445c187ad03bae7b8f02e063175f
5
5
  SHA512:
6
- metadata.gz: cdec40e14778746cfa34d4625da45725560c2305ea3ffd993dbd9b2893c37b94b973d6343130ddd469661725b385b96deb0761e3cfc401207f6dbd8de9b2f708
7
- data.tar.gz: 5bc6782dc04230c63393fad9c0d0a4fbb3d8fddaaee1d05ce08ffbc0ed24378a7725a12d6226b04393fd9b81b29bddfc29e07582c80ecd8340cc39417db42293
6
+ metadata.gz: 0356559cb69bb41529fbde684aae9a8c743b6a4c039c6a6fac8ae68817b61843ad441e77c76a31185d24d9b6cfec2fe275fbe68c47c89b60ea76eb150d642065
7
+ data.tar.gz: 6ce3a3dcfedc4d2bda16387ec08774424947201a50e88ebc12eb653d7d21eefbc466ac5d7aa5d60cdb370e75b0463176317b784ca6260980a51b8b99a01550a9
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,15 +1,31 @@
1
- ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta1...master)
1
+ ### 3.5 Development
2
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta4...master)
3
+
4
+ ### 3.5.0.beta4 / 2016-06-05
5
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta3...v3.5.0.beta4)
6
+
7
+ Enhancements:
8
+
9
+ * Add `and_throw` to any instance handling. (Tobias Bühlmann, #1068)
10
+
11
+ ### 3.5.0.beta3 / 2016-04-02
12
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta2...v3.5.0.beta3)
3
13
 
4
14
  Enhancements:
5
15
 
6
- * Improve error message displayed when using `and_wrap_original` on pure test
7
- doubles. (betesh, #1063)
8
16
  * Issue warning when attempting to use unsupported
9
17
  `allow(...).to receive(...).ordered`. (Jon Rowe, #1000)
10
- * Add `rspec/mocks/minitest_integration`, to properly integration rspec-mocks
18
+ * Add `rspec/mocks/minitest_integration`, to properly integrate rspec-mocks
11
19
  with minitest. (Myron Marston, #1065)
12
20
 
21
+ ### 3.5.0.beta2 / 2016-03-10
22
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta1...v3.5.0.beta2)
23
+
24
+ Enhancements:
25
+
26
+ * Improve error message displayed when using `and_wrap_original` on pure test
27
+ doubles. (betesh, #1063)
28
+
13
29
  Bug Fixes:
14
30
 
15
31
  * Fix issue that prevented `receive_message_chain(...).with(...)` working
@@ -31,6 +31,7 @@ module RSpec
31
31
  :and_return => [:with, nil],
32
32
  :and_raise => [:with, nil],
33
33
  :and_yield => [:with, :and_yield, nil],
34
+ :and_throw => [:with, nil],
34
35
  :and_call_original => [:with, nil],
35
36
  :and_wrap_original => [:with, nil]
36
37
  }
@@ -214,8 +214,8 @@ module RSpec
214
214
 
215
215
  def expectation_on_nil_message(method_name)
216
216
  "An expectation of `:#{method_name}` was set on `nil`. " \
217
- "To allow expectations on `nil` and suppress this message, set `config.allow_expectations_on_nil` to `true`. " \
218
- "To disallow expectations on `nil`, set `config.allow_expectations_on_nil` to `false`"
217
+ "To allow expectations on `nil` and suppress this message, set `config.allow_message_expectations_on_nil` to `true`. " \
218
+ "To disallow expectations on `nil`, set `config.allow_message_expectations_on_nil` to `false`"
219
219
  end
220
220
 
221
221
  private
@@ -1,3 +1,5 @@
1
+ RSpec::Support.require_rspec_support 'comparable_version'
2
+
1
3
  module RSpec
2
4
  module Mocks
3
5
  # Represents a method on an object that may or may not be defined.
@@ -128,7 +130,7 @@ module RSpec
128
130
  #
129
131
  # This is necessary due to a bug in JRuby prior to 1.7.5 fixed in:
130
132
  # https://github.com/jruby/jruby/commit/99a0613fe29935150d76a9a1ee4cf2b4f63f4a27
131
- if RUBY_PLATFORM == 'java' && JRUBY_VERSION.split('.')[-1].to_i < 5
133
+ if RUBY_PLATFORM == 'java' && RSpec::Support::ComparableVersion.new(JRUBY_VERSION) < '1.7.5'
132
134
  def find_method(mod)
133
135
  mod.dup.instance_method(@method_name)
134
136
  end
@@ -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.5.0.beta3'
6
+ STRING = '3.5.0.beta4'
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.5.0.beta3
4
+ version: 3.5.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -45,7 +45,7 @@ cert_chain:
45
45
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
46
46
  F3MdtaDehhjC
47
47
  -----END CERTIFICATE-----
48
- date: 2016-04-02 00:00:00.000000000 Z
48
+ date: 2016-06-05 00:00:00.000000000 Z
49
49
  dependencies:
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: rspec-support
@@ -53,14 +53,14 @@ dependencies:
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 3.5.0.beta3
56
+ version: 3.5.0.beta4
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 3.5.0.beta3
63
+ version: 3.5.0.beta4
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: diff-lcs
66
66
  requirement: !ruby/object:Gem::Requirement
@@ -210,9 +210,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: 1.3.1
211
211
  requirements: []
212
212
  rubyforge_project:
213
- rubygems_version: 2.4.5.1
213
+ rubygems_version: 2.2.2
214
214
  signing_key:
215
215
  specification_version: 4
216
- summary: rspec-mocks-3.5.0.beta3
216
+ summary: rspec-mocks-3.5.0.beta4
217
217
  test_files: []
218
218
  has_rdoc:
metadata.gz.sig CHANGED
Binary file