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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +21 -5
- data/lib/rspec/mocks/any_instance/stub_chain.rb +1 -0
- data/lib/rspec/mocks/error_generator.rb +2 -2
- data/lib/rspec/mocks/method_reference.rb +3 -1
- data/lib/rspec/mocks/version.rb +1 -1
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25e619f239f393038a41c5ae5283931d45177060
|
4
|
+
data.tar.gz: bcf202094e33445c187ad03bae7b8f02e063175f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0356559cb69bb41529fbde684aae9a8c743b6a4c039c6a6fac8ae68817b61843ad441e77c76a31185d24d9b6cfec2fe275fbe68c47c89b60ea76eb150d642065
|
7
|
+
data.tar.gz: 6ce3a3dcfedc4d2bda16387ec08774424947201a50e88ebc12eb653d7d21eefbc466ac5d7aa5d60cdb370e75b0463176317b784ca6260980a51b8b99a01550a9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,15 +1,31 @@
|
|
1
|
-
### Development
|
2
|
-
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.
|
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
|
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
|
@@ -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.
|
218
|
-
"To disallow expectations on `nil`, set `config.
|
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' &&
|
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
|
data/lib/rspec/mocks/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
213
|
+
rubygems_version: 2.2.2
|
214
214
|
signing_key:
|
215
215
|
specification_version: 4
|
216
|
-
summary: rspec-mocks-3.5.0.
|
216
|
+
summary: rspec-mocks-3.5.0.beta4
|
217
217
|
test_files: []
|
218
218
|
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|