rspec-mocks 3.11.2 → 3.12.0
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +10 -2
- data/lib/rspec/mocks/error_generator.rb +11 -0
- data/lib/rspec/mocks/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +10 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0cd2152d61378a0a88fff67002f2fb7654e420b8e05dae14a9a0dee53be75158
|
|
4
|
+
data.tar.gz: ae2927214cf12da04ea1301bda73e04663293bd8afce3e028d2937ccfee7332e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19e1b47dd79167753c4f551006b20ec2b3f72ebdf3cd02d10c94c78fe14c5ff808de8a2dcd0b622723aee7c3454bc67f817477edbe877ba181244548d0725956
|
|
7
|
+
data.tar.gz: 326636f36eb006d142e59b62477c4014a539157bdff50d6e06be4236e00df2eb824e4939f709192d538196a6dd223d7d2efae4bb21fe7392a02afc7744789c9a
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/Changelog.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
### Development
|
|
2
|
-
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.
|
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.0...3-12-maintenance)
|
|
3
|
+
|
|
4
|
+
### 3.12.0 / 2022-10-26
|
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.2...v3.12.0)
|
|
6
|
+
|
|
7
|
+
Enhancements:
|
|
8
|
+
|
|
9
|
+
* Improve diff output when diffing keyword arguments against hashes.
|
|
10
|
+
(Jean Boussier, #1461)
|
|
3
11
|
|
|
4
12
|
### 3.11.2 / 2022-10-25
|
|
5
|
-
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...
|
|
13
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...v3.11.2)
|
|
6
14
|
|
|
7
15
|
Bug Fixes:
|
|
8
16
|
|
|
@@ -268,6 +268,17 @@ module RSpec
|
|
|
268
268
|
def error_message(expectation, args_for_multiple_calls)
|
|
269
269
|
expected_args = format_args(expectation.expected_args)
|
|
270
270
|
actual_args = format_received_args(args_for_multiple_calls)
|
|
271
|
+
|
|
272
|
+
if RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash? && expected_args == actual_args
|
|
273
|
+
expected_hash = expectation.expected_args.last
|
|
274
|
+
actual_hash = args_for_multiple_calls.last.last
|
|
275
|
+
if Hash === expected_hash && Hash === actual_hash &&
|
|
276
|
+
(Hash.ruby2_keywords_hash?(expected_hash) != Hash.ruby2_keywords_hash?(actual_hash))
|
|
277
|
+
actual_args += Hash.ruby2_keywords_hash?(actual_hash) ? " (keyword arguments)" : " (options hash)"
|
|
278
|
+
expected_args += Hash.ruby2_keywords_hash?(expected_hash) ? " (keyword arguments)" : " (options hash)"
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
|
|
271
282
|
message = default_error_message(expectation, expected_args, actual_args)
|
|
272
283
|
|
|
273
284
|
if args_for_multiple_calls.one?
|
data/lib/rspec/mocks/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-mocks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Baker
|
|
8
8
|
- David Chelimsky
|
|
9
9
|
- Myron Marston
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain:
|
|
13
13
|
- |
|
|
@@ -45,7 +45,7 @@ cert_chain:
|
|
|
45
45
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
|
46
46
|
F3MdtaDehhjC
|
|
47
47
|
-----END CERTIFICATE-----
|
|
48
|
-
date: 2022-10-
|
|
48
|
+
date: 2022-10-26 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.
|
|
56
|
+
version: 3.12.0
|
|
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.
|
|
63
|
+
version: 3.12.0
|
|
64
64
|
- !ruby/object:Gem::Dependency
|
|
65
65
|
name: diff-lcs
|
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -194,11 +194,11 @@ licenses:
|
|
|
194
194
|
- MIT
|
|
195
195
|
metadata:
|
|
196
196
|
bug_tracker_uri: https://github.com/rspec/rspec-mocks/issues
|
|
197
|
-
changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.
|
|
197
|
+
changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.12.0/Changelog.md
|
|
198
198
|
documentation_uri: https://rspec.info/documentation/
|
|
199
199
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
|
200
200
|
source_code_uri: https://github.com/rspec/rspec-mocks
|
|
201
|
-
post_install_message:
|
|
201
|
+
post_install_message:
|
|
202
202
|
rdoc_options:
|
|
203
203
|
- "--charset=UTF-8"
|
|
204
204
|
require_paths:
|
|
@@ -214,8 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
214
214
|
- !ruby/object:Gem::Version
|
|
215
215
|
version: '0'
|
|
216
216
|
requirements: []
|
|
217
|
-
rubygems_version: 3.
|
|
218
|
-
signing_key:
|
|
217
|
+
rubygems_version: 3.1.6
|
|
218
|
+
signing_key:
|
|
219
219
|
specification_version: 4
|
|
220
|
-
summary: rspec-mocks-3.
|
|
220
|
+
summary: rspec-mocks-3.12.0
|
|
221
221
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|