rspec-expectations 3.13.3 → 3.13.6
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 +163 -140
- data/lib/rspec/expectations/configuration.rb +23 -14
- data/lib/rspec/expectations/version.rb +1 -1
- data/lib/rspec/matchers/built_in/change.rb +2 -2
- data/lib/rspec/matchers/built_in/include.rb +1 -0
- data/lib/rspec/matchers/built_in/match.rb +12 -0
- data/lib/rspec/matchers/built_in/respond_to.rb +2 -2
- data/lib/rspec/matchers/dsl.rb +6 -5
- data/lib/rspec/matchers/multi_matcher_diff.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +25 -84
- 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: ddba94c470a00afd22914d172b114934e424fd5555521f3f27c5065e842e166b
|
|
4
|
+
data.tar.gz: f84761c99dfcd5881a23968dfa14bac2cbcb782600f4426a69c2af080e312c5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8194f0dd8b4d81a328b5b7e76edc67bf5a1f7f6b592e44f81413c5c3b5551b5986df22591d2c7f7df54d758e97c6a9f99b8f934ed89a6f9c27f5a07af54fae01
|
|
7
|
+
data.tar.gz: 94fc2f639fd7a741341266517776ae03a736ff2dd834e52b56327a07ff44922f8f8feb40b49276d34babe9bbb3a3b946acb5cdbb371f718bff525c3ee95da8ed
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/Changelog.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
### Development
|
|
2
|
-
[Full Changelog](
|
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.6...3-13-maintenance)
|
|
3
|
+
|
|
4
|
+
### 3.13.6 / 2026-11-06
|
|
5
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.5...rspec-expectations-v3.13.6)
|
|
6
|
+
|
|
7
|
+
Bug Fixes:
|
|
8
|
+
|
|
9
|
+
* Declare unused block arguments to prevent a warning being issued. (Jon Rowe, rspec/rspec#349)
|
|
10
|
+
* Make `include` short circuit when comparing strings to things which can't be co-erced into strings.
|
|
11
|
+
(Don Yin, rspec/rspec#354)
|
|
12
|
+
|
|
13
|
+
### 3.13.5 / 2025-05-27
|
|
14
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.4...rspec-expectations-v3.13.5)
|
|
15
|
+
|
|
16
|
+
Bug Fixes:
|
|
17
|
+
|
|
18
|
+
* Fix links in gemspec to point to the monorepo / homepage.
|
|
19
|
+
|
|
20
|
+
### 3.13.4 / 2025-05-01
|
|
21
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.3...rspec-expectations-v3.13.4)
|
|
22
|
+
|
|
23
|
+
Bug Fixes:
|
|
24
|
+
|
|
25
|
+
* Prevent `match` from trying to compare strings and arrays using `Array#match`. (Joseph Haig, rspec/rspec#183)
|
|
3
26
|
|
|
4
27
|
### 3.13.3 / 2024-09-07
|
|
5
28
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.13.2...v3.13.3)
|
|
@@ -7,7 +30,7 @@
|
|
|
7
30
|
Bug Fixes:
|
|
8
31
|
|
|
9
32
|
* Fix passing a regular expression to the `include` matcher without a count constraint.
|
|
10
|
-
(Jon Rowe, #1485)
|
|
33
|
+
(Jon Rowe, rspec/rspec-expectations#1485)
|
|
11
34
|
|
|
12
35
|
### 3.13.2 / 2024-08-20
|
|
13
36
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.13.1...v3.13.2)
|
|
@@ -15,10 +38,10 @@ Bug Fixes:
|
|
|
15
38
|
Bug Fixes:
|
|
16
39
|
|
|
17
40
|
* When using null object doubles, prevent typos triggering dynamic matchers.
|
|
18
|
-
(Eric Mueller, #1455)
|
|
19
|
-
* Use `RSpec.warning` for an expectation warning rather than `Kernel.warn`. (Jon Rowe, #1472)
|
|
20
|
-
* Prevent mismatched use of block and value matchers in compound expectations. (Phil Pirozhkov, #1476)
|
|
21
|
-
* Raise an error when passing no arguments to the `include` matcher. (Eric Mueller, #1479)
|
|
41
|
+
(Eric Mueller, rspec/rspec-expectations#1455)
|
|
42
|
+
* Use `RSpec.warning` for an expectation warning rather than `Kernel.warn`. (Jon Rowe, rspec/rspec-expectations#1472)
|
|
43
|
+
* Prevent mismatched use of block and value matchers in compound expectations. (Phil Pirozhkov, rspec/rspec-expectations#1476)
|
|
44
|
+
* Raise an error when passing no arguments to the `include` matcher. (Eric Mueller, rspec/rspec-expectations#1479)
|
|
22
45
|
|
|
23
46
|
### 3.13.1 / 2024-06-13
|
|
24
47
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.13.0...v3.13.1)
|
|
@@ -26,7 +49,7 @@ Bug Fixes:
|
|
|
26
49
|
Bug Fixes:
|
|
27
50
|
|
|
28
51
|
* Fix the "false positive" warning message when using a negated `raise_error` matcher
|
|
29
|
-
with a `RegExp` instance. (Eric Mueller, #1456)
|
|
52
|
+
with a `RegExp` instance. (Eric Mueller, rspec/rspec-expectations#1456)
|
|
30
53
|
|
|
31
54
|
### 3.13.0 / 2024-02-04
|
|
32
55
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.12.4...v3.13.0)
|
|
@@ -34,7 +57,7 @@ Bug Fixes:
|
|
|
34
57
|
Enhancements:
|
|
35
58
|
|
|
36
59
|
* Update `eq` and `eql` matchers to better highlight difference in string encoding.
|
|
37
|
-
(Alan Foster, #1425)
|
|
60
|
+
(Alan Foster, rspec/rspec-expectations#1425)
|
|
38
61
|
|
|
39
62
|
### 3.12.4 / 2024-02-04
|
|
40
63
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.12.3...v3.12.4)
|
|
@@ -42,7 +65,7 @@ Enhancements:
|
|
|
42
65
|
Bug Fixes:
|
|
43
66
|
|
|
44
67
|
* Fix the diff for redefined `actual` and reassigned `@actual` in compound
|
|
45
|
-
expectations failure messages. (Phil Pirozhkov, #1440)
|
|
68
|
+
expectations failure messages. (Phil Pirozhkov, rspec/rspec-expectations#1440)
|
|
46
69
|
|
|
47
70
|
### 3.12.3 / 2023-04-20
|
|
48
71
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.12.2...v3.12.3)
|
|
@@ -51,7 +74,7 @@ Bug Fixes:
|
|
|
51
74
|
|
|
52
75
|
* Fix `include` matcher when fuzzy matching on keys with a hash-like actual which
|
|
53
76
|
has a non standard `key?` method which may raise.
|
|
54
|
-
(Jon Rowe, #1416)
|
|
77
|
+
(Jon Rowe, rspec/rspec-expectations#1416)
|
|
55
78
|
|
|
56
79
|
### 3.12.2 / 2023-01-07
|
|
57
80
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.12.1...v3.12.2)
|
|
@@ -59,16 +82,16 @@ Bug Fixes:
|
|
|
59
82
|
Bug Fixes:
|
|
60
83
|
|
|
61
84
|
* Prevent deprecation warning when using the `exist` matcher with `Dir`.
|
|
62
|
-
(Steve Dierker, #1398)
|
|
85
|
+
(Steve Dierker, rspec/rspec-expectations#1398)
|
|
63
86
|
|
|
64
87
|
### 3.12.1 / 2022-12-16
|
|
65
88
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.12.0...v3.12.1)
|
|
66
89
|
|
|
67
90
|
Bug Fixes:
|
|
68
91
|
|
|
69
|
-
* Pass keyword arguments through to aliased (and thus negated) matchers. (Jon Rowe, #1394)
|
|
92
|
+
* Pass keyword arguments through to aliased (and thus negated) matchers. (Jon Rowe, rspec/rspec-expectations#1394)
|
|
70
93
|
* When handling failures in an aggregated_failures block (or example) prevent
|
|
71
|
-
the failure list leaking out. (Maciek Rząsa, #1392)
|
|
94
|
+
the failure list leaking out. (Maciek Rząsa, rspec/rspec-expectations#1392)
|
|
72
95
|
|
|
73
96
|
### 3.12.0 / 2022-10-26
|
|
74
97
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.11.1...v3.12.0)
|
|
@@ -76,7 +99,7 @@ Bug Fixes:
|
|
|
76
99
|
Enhancements:
|
|
77
100
|
|
|
78
101
|
* Add `an_array_matching` alias for `match_array` to improve readability as an argument
|
|
79
|
-
matcher. (Mark Schneider, #1361)
|
|
102
|
+
matcher. (Mark Schneider, rspec/rspec-expectations#1361)
|
|
80
103
|
|
|
81
104
|
### 3.11.1 / 2022-09-12
|
|
82
105
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.11.0...v3.11.1)
|
|
@@ -84,33 +107,33 @@ Enhancements:
|
|
|
84
107
|
Bug Fixes:
|
|
85
108
|
|
|
86
109
|
* Allow the `contain_exactly` matcher to be reused by resetting its
|
|
87
|
-
internals on `matches?` (@bclayman-sq, #1326)
|
|
110
|
+
internals on `matches?` (@bclayman-sq, rspec/rspec-expectations#1326)
|
|
88
111
|
* Using the exist matcher on `FileTest` no longer produces a deprecation warning.
|
|
89
|
-
(Ryo Nakamura, #1383)
|
|
112
|
+
(Ryo Nakamura, rspec/rspec-expectations#1383)
|
|
90
113
|
|
|
91
114
|
### 3.11.0 / 2022-02-09
|
|
92
115
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.2...v3.11.0)
|
|
93
116
|
|
|
94
117
|
Enhancements:
|
|
95
118
|
|
|
96
|
-
* Return `true` from `aggregate_failures` when no exception occurs. (Jon Rowe, #1225)
|
|
119
|
+
* Return `true` from `aggregate_failures` when no exception occurs. (Jon Rowe, rspec/rspec-expectations#1225)
|
|
97
120
|
|
|
98
121
|
Deprecations:
|
|
99
122
|
|
|
100
123
|
* Print a deprecation message when using the implicit block expectation syntax.
|
|
101
|
-
(Phil Pirozhkov, #1139)
|
|
124
|
+
(Phil Pirozhkov, rspec/rspec-expectations#1139)
|
|
102
125
|
|
|
103
126
|
### 3.10.2 / 2022-01-14
|
|
104
127
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.1...v3.10.2)
|
|
105
128
|
|
|
106
129
|
Bug Fixes:
|
|
107
130
|
|
|
108
|
-
* Fix support for dynamic matchers for expectation target checks (Phil Pirozhkov, #1294)
|
|
131
|
+
* Fix support for dynamic matchers for expectation target checks (Phil Pirozhkov, rspec/rspec-expectations#1294)
|
|
109
132
|
* Fix `expect(array).to include(hash).times`, previously this would fail due to
|
|
110
133
|
matching the entire array as a single hash, rather than a member of the hash.
|
|
111
|
-
(Slava Kardakov, #1322)
|
|
134
|
+
(Slava Kardakov, rspec/rspec-expectations#1322)
|
|
112
135
|
* Ensure `raise_error` matches works with the `error_highlight` option from Ruby 3.1.
|
|
113
|
-
(Peter Goldstein, #1339)
|
|
136
|
+
(Peter Goldstein, rspec/rspec-expectations#1339)
|
|
114
137
|
|
|
115
138
|
### 3.10.1 / 2020-12-27
|
|
116
139
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.0...v3.10.1)
|
|
@@ -118,7 +141,7 @@ Bug Fixes:
|
|
|
118
141
|
Bug Fixes:
|
|
119
142
|
|
|
120
143
|
* Allow JRuby 9.2.x.x to generate backtraces normally rather than via our
|
|
121
|
-
backfill workaround. (#1230, Jon Rowe)
|
|
144
|
+
backfill workaround. (rspec/rspec-expectations#1230, Jon Rowe)
|
|
122
145
|
|
|
123
146
|
### 3.10.0 / 2020-10-30
|
|
124
147
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.9.3...v3.10.0)
|
|
@@ -126,19 +149,19 @@ Bug Fixes:
|
|
|
126
149
|
Enhancements:
|
|
127
150
|
|
|
128
151
|
* Allow `include` matcher to be chained with `once`, `at_least`, etc. for simple cases.
|
|
129
|
-
(Marc-André Lafortune, #1168)
|
|
130
|
-
* Add an explicit warning when `nil` is passed to `raise_error`. (Phil Pirozhkov, #1143)
|
|
131
|
-
* Improve `include` matcher's composability. (Phil Pirozhkov, #1155)
|
|
152
|
+
(Marc-André Lafortune, rspec/rspec-expectations#1168)
|
|
153
|
+
* Add an explicit warning when `nil` is passed to `raise_error`. (Phil Pirozhkov, rspec/rspec-expectations#1143)
|
|
154
|
+
* Improve `include` matcher's composability. (Phil Pirozhkov, rspec/rspec-expectations#1155)
|
|
132
155
|
* Mocks expectations can now set a custom failure message.
|
|
133
|
-
(Benoit Tigeot and Nicolas Zermati, #1156)
|
|
134
|
-
* `aggregate_failures` now shows the backtrace line for each failure. (Fabricio Bedin, #1163)
|
|
156
|
+
(Benoit Tigeot and Nicolas Zermati, rspec/rspec-expectations#1156)
|
|
157
|
+
* `aggregate_failures` now shows the backtrace line for each failure. (Fabricio Bedin, rspec/rspec-expectations#1163)
|
|
135
158
|
* Support multiple combinations of `yield_control` modifiers like `at_least`, `at_most`.
|
|
136
|
-
(Jon Rowe, #1169)
|
|
159
|
+
(Jon Rowe, rspec/rspec-expectations#1169)
|
|
137
160
|
* Dynamic `have_<n>` matchers now have output consistent with other dynamic matchers.
|
|
138
|
-
(Marc-André Lafortune, #1195)
|
|
161
|
+
(Marc-André Lafortune, rspec/rspec-expectations#1195)
|
|
139
162
|
* New config option `strict_predicate_matchers` allows predicate matcher to be strict
|
|
140
163
|
(i.e. match for `true` or `false`) instead of the default (match truthy vs `false` or `nil`).
|
|
141
|
-
(Marc-André Lafortune, #1196)
|
|
164
|
+
(Marc-André Lafortune, rspec/rspec-expectations#1196)
|
|
142
165
|
|
|
143
166
|
### 3.9.4 / 2020-10-29
|
|
144
167
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.9.3...v3.9.4)
|
|
@@ -146,7 +169,7 @@ Enhancements:
|
|
|
146
169
|
Bug Fixes:
|
|
147
170
|
|
|
148
171
|
* Fix regression with `be_` and `have_` matchers and arguments implementing `to_hash`
|
|
149
|
-
were they would act like keywords and be cast to a hash. (Jon Rowe, #1222)
|
|
172
|
+
were they would act like keywords and be cast to a hash. (Jon Rowe, rspec/rspec-expectations#1222)
|
|
150
173
|
|
|
151
174
|
### 3.9.3 / 2020-10-23
|
|
152
175
|
|
|
@@ -154,14 +177,14 @@ Bug Fixes:
|
|
|
154
177
|
|
|
155
178
|
* Swap the comparison of the delta vs the expected for the `be_within` matcher allowing
|
|
156
179
|
more complicated oobjects to be compared providing they provide `abs` and other
|
|
157
|
-
comparison methods. (Kelly Stannard, #1182)
|
|
158
|
-
* Properly format expected in the description of the `be_within` matcher. (Jon Rowe, #1185)
|
|
180
|
+
comparison methods. (Kelly Stannard, rspec/rspec-expectations#1182)
|
|
181
|
+
* Properly format expected in the description of the `be_within` matcher. (Jon Rowe, rspec/rspec-expectations#1185)
|
|
159
182
|
* Remove warning when using keyword arguments with `be_` and `have_` matchers on 2.7.x
|
|
160
|
-
(Jon Rowe, #1187)
|
|
183
|
+
(Jon Rowe, rspec/rspec-expectations#1187)
|
|
161
184
|
* Prevent formatting a single hash as a list of key value pairs in default failure messages
|
|
162
|
-
for custom matches (fixes formatting in `EnglishPhrasing#list`). (Robert Eshleman, #1193)
|
|
185
|
+
for custom matches (fixes formatting in `EnglishPhrasing#list`). (Robert Eshleman, rspec/rspec-expectations#1193)
|
|
163
186
|
* Prevent errors from causing false positives when using `be <operator>` comparison, e.g.
|
|
164
|
-
`expect(1).not_to be < 'a'` will now correctly fail rather than pass. (Jon Rowe, #1208)
|
|
187
|
+
`expect(1).not_to be < 'a'` will now correctly fail rather than pass. (Jon Rowe, rspec/rspec-expectations#1208)
|
|
165
188
|
|
|
166
189
|
|
|
167
190
|
### 3.9.2 / 2020-05-08
|
|
@@ -170,9 +193,9 @@ Bug Fixes:
|
|
|
170
193
|
Bug Fixes:
|
|
171
194
|
|
|
172
195
|
* Issue a proper `ArgumentError` when invalid arguments are given to `yield_control`
|
|
173
|
-
modifiers such as `at_least` et al. (Marc-André Lafortune, #1167)
|
|
196
|
+
modifiers such as `at_least` et al. (Marc-André Lafortune, rspec/rspec-expectations#1167)
|
|
174
197
|
* Prevent Ruby 2.7 keyword arguments warning from being issued by custom
|
|
175
|
-
matcher definitions. (Jon Rowe, #1176)
|
|
198
|
+
matcher definitions. (Jon Rowe, rspec/rspec-expectations#1176)
|
|
176
199
|
|
|
177
200
|
### 3.9.1 / 2020-03-13
|
|
178
201
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.9.0...v3.9.1)
|
|
@@ -180,7 +203,7 @@ Bug Fixes:
|
|
|
180
203
|
Bug Fixes:
|
|
181
204
|
|
|
182
205
|
* Issue an improved warning when using `respond_to(...).with(n).arguments` and ignore
|
|
183
|
-
the warning when using with `have_attributes(...)`. (Jon Rowe, #1164)
|
|
206
|
+
the warning when using with `have_attributes(...)`. (Jon Rowe, rspec/rspec-expectations#1164)
|
|
184
207
|
|
|
185
208
|
### 3.9.0 / 2019-10-08
|
|
186
209
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.6...v3.9.0)
|
|
@@ -188,19 +211,19 @@ Bug Fixes:
|
|
|
188
211
|
Enhancements:
|
|
189
212
|
|
|
190
213
|
* The `respond_to` matcher now uses the signature from `initialize` to validate checks
|
|
191
|
-
for `new` (unless `new` is non standard). (Jon Rowe, #1072)
|
|
214
|
+
for `new` (unless `new` is non standard). (Jon Rowe, rspec/rspec-expectations#1072)
|
|
192
215
|
* Generated descriptions for matchers now use `is expected to` rather than `should` in
|
|
193
|
-
line with our preferred DSL. (Pete Johns, #1080, rspec/rspec-
|
|
216
|
+
line with our preferred DSL. (Pete Johns, rspec/rspec-expectations#1080, rspec/rspec-corerspec/rspec-expectations#2572)
|
|
194
217
|
* Add the ability to re-raise expectation errors when matching
|
|
195
|
-
with `match_when_negated` blocks. (Jon Rowe, #1130)
|
|
218
|
+
with `match_when_negated` blocks. (Jon Rowe, rspec/rspec-expectations#1130)
|
|
196
219
|
* Add a warning when an empty diff is produce due to identical inspect output.
|
|
197
|
-
(Benoit Tigeot, #1126)
|
|
220
|
+
(Benoit Tigeot, rspec/rspec-expectations#1126)
|
|
198
221
|
|
|
199
222
|
### 3.8.6 / 2019-10-07
|
|
200
223
|
|
|
201
224
|
Bug Fixes:
|
|
202
225
|
|
|
203
|
-
* Revert #1125 due to the change being incompatible with our semantic versioning
|
|
226
|
+
* Revert rspec/rspec-expectations#1125 due to the change being incompatible with our semantic versioning
|
|
204
227
|
policy.
|
|
205
228
|
|
|
206
229
|
### 3.8.5 / 2019-10-02
|
|
@@ -209,7 +232,7 @@ Bug Fixes:
|
|
|
209
232
|
Bug Fixes:
|
|
210
233
|
|
|
211
234
|
* Prevent unsupported implicit block expectation syntax from being used.
|
|
212
|
-
(Phil Pirozhkov, #1125)
|
|
235
|
+
(Phil Pirozhkov, rspec/rspec-expectations#1125)
|
|
213
236
|
|
|
214
237
|
### 3.8.4 / 2019-06-10
|
|
215
238
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.3...v3.8.4)
|
|
@@ -217,7 +240,7 @@ Bug Fixes:
|
|
|
217
240
|
Bug Fixes:
|
|
218
241
|
|
|
219
242
|
* Prevent false negatives when checking objects for the methods required to run the
|
|
220
|
-
the `be_an_instance_of` and `be_kind_of` matchers. (Nazar Matus, #1112)
|
|
243
|
+
the `be_an_instance_of` and `be_kind_of` matchers. (Nazar Matus, rspec/rspec-expectations#1112)
|
|
221
244
|
|
|
222
245
|
### 3.8.3 / 2019-04-20
|
|
223
246
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.2...v3.8.3)
|
|
@@ -225,12 +248,12 @@ Bug Fixes:
|
|
|
225
248
|
Bug Fixes:
|
|
226
249
|
|
|
227
250
|
* Prevent composed `all` matchers from leaking into their siblings leading to duplicate
|
|
228
|
-
failures. (Jamie English, #1086)
|
|
251
|
+
failures. (Jamie English, rspec/rspec-expectations#1086)
|
|
229
252
|
* Prevent objects which change their hash on comparison from failing change checks.
|
|
230
|
-
(Phil Pirozhkov, #1100)
|
|
253
|
+
(Phil Pirozhkov, rspec/rspec-expectations#1100)
|
|
231
254
|
* Issue an `ArgumentError` rather than a `NoMethodError` when `be_an_instance_of` and
|
|
232
255
|
`be_kind_of` matchers encounter objects not supporting those methods.
|
|
233
|
-
(Taichi Ishitani, #1107)
|
|
256
|
+
(Taichi Ishitani, rspec/rspec-expectations#1107)
|
|
234
257
|
|
|
235
258
|
### 3.8.2 / 2018-10-09
|
|
236
259
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.1...v3.8.2)
|
|
@@ -238,9 +261,9 @@ Bug Fixes:
|
|
|
238
261
|
Bug Fixes:
|
|
239
262
|
|
|
240
263
|
* Change `include` matcher to rely on a `respond_to?(:include?)` check rather than a direct
|
|
241
|
-
Hash comparison before calling `to_hash` to convert to a hash. (Jordan Owens, #1073)
|
|
264
|
+
Hash comparison before calling `to_hash` to convert to a hash. (Jordan Owens, rspec/rspec-expectations#1073)
|
|
242
265
|
* Prevent unexpected call stack jumps from causing an obscure error (`IndexError`), and
|
|
243
|
-
replace that error with a proper informative message. (Jon Rowe, #1076)
|
|
266
|
+
replace that error with a proper informative message. (Jon Rowe, rspec/rspec-expectations#1076)
|
|
244
267
|
|
|
245
268
|
### 3.8.1 / 2018-08-06
|
|
246
269
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.0...v3.8.1)
|
|
@@ -249,7 +272,7 @@ Bug Fixes:
|
|
|
249
272
|
|
|
250
273
|
* Fix regression in `include` matcher so stopped
|
|
251
274
|
`expect(hash.with_indifferent_access).to include(:symbol_key)`
|
|
252
|
-
from working. (Eito Katagiri, #1069)
|
|
275
|
+
from working. (Eito Katagiri, rspec/rspec-expectations#1069)
|
|
253
276
|
|
|
254
277
|
### 3.8.0 / 2018-08-04
|
|
255
278
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.7.0...v3.8.0)
|
|
@@ -257,20 +280,20 @@ Bug Fixes:
|
|
|
257
280
|
Enhancements:
|
|
258
281
|
|
|
259
282
|
* Improve failure message of `change(receiver, :message)` by including the
|
|
260
|
-
receiver as `SomeClass#some_message`. (Tomohiro Hashidate, #1005)
|
|
283
|
+
receiver as `SomeClass#some_message`. (Tomohiro Hashidate, rspec/rspec-expectations#1005)
|
|
261
284
|
* Improve `change` matcher so that it can correctly detect changes in
|
|
262
285
|
deeply nested mutable objects (such as arrays-of-hashes-of-arrays).
|
|
263
286
|
The improved logic uses the before/after `hash` value to see if the
|
|
264
287
|
object has been mutated, rather than shallow duping the object.
|
|
265
|
-
(Myron Marston, #1034)
|
|
288
|
+
(Myron Marston, rspec/rspec-expectations#1034)
|
|
266
289
|
* Improve `include` matcher so that pseudo-hash objects (e.g. objects
|
|
267
290
|
that decorate a hash using a `SimpleDelegator` or similar) are treated
|
|
268
|
-
as a hash, as long as they implement `to_hash`. (Pablo Brasero, #1012)
|
|
291
|
+
as a hash, as long as they implement `to_hash`. (Pablo Brasero, rspec/rspec-expectations#1012)
|
|
269
292
|
* Add `max_formatted_output_length=` to configuration, allowing changing
|
|
270
293
|
the length at which we truncate large output strings.
|
|
271
|
-
(Sam Phippen #951, Benoit Tigeot #1056)
|
|
294
|
+
(Sam Phippen rspec/rspec-expectations#951, Benoit Tigeot rspec/rspec-expectations#1056)
|
|
272
295
|
* Improve error message when passing a matcher that doesn't support block
|
|
273
|
-
expectations to a block based `expect`. (@nicktime, #1066)
|
|
296
|
+
expectations to a block based `expect`. (@nicktime, rspec/rspec-expectations#1066)
|
|
274
297
|
|
|
275
298
|
### 3.7.0 / 2017-10-17
|
|
276
299
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0...v3.7.0)
|
|
@@ -278,27 +301,27 @@ Enhancements:
|
|
|
278
301
|
Enhancements:
|
|
279
302
|
|
|
280
303
|
* Improve compatibility with `--enable-frozen-string-literal` option
|
|
281
|
-
on Ruby 2.3+. (Pat Allan, #997)
|
|
304
|
+
on Ruby 2.3+. (Pat Allan, rspec/rspec-expectations#997)
|
|
282
305
|
|
|
283
306
|
### 3.6.0 / 2017-05-04
|
|
284
307
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0.beta2...v3.6.0)
|
|
285
308
|
|
|
286
309
|
Enhancements:
|
|
287
310
|
|
|
288
|
-
* Treat NoMethodError as a failure for comparison matchers. (Jon Rowe, #972)
|
|
311
|
+
* Treat NoMethodError as a failure for comparison matchers. (Jon Rowe, rspec/rspec-expectations#972)
|
|
289
312
|
* Allow for scoped aliased and negated matchers--just call
|
|
290
313
|
`alias_matcher` or `define_negated_matcher` from within an example
|
|
291
|
-
group. (Markus Reiter, #974)
|
|
314
|
+
group. (Markus Reiter, rspec/rspec-expectations#974)
|
|
292
315
|
* Improve failure message of `change` matcher with block and `satisfy` matcher
|
|
293
316
|
by including the block snippet instead of just describing it as `result` or
|
|
294
|
-
`block` when Ripper is available. (Yuji Nakayama, #987)
|
|
317
|
+
`block` when Ripper is available. (Yuji Nakayama, rspec/rspec-expectations#987)
|
|
295
318
|
|
|
296
319
|
Bug Fixes:
|
|
297
320
|
|
|
298
321
|
* Fix `yield_with_args` and `yield_successive_args` matchers so that
|
|
299
322
|
they compare expected to actual args at the time the args are yielded
|
|
300
323
|
instead of at the end, in case the method that is yielding mutates the
|
|
301
|
-
arguments after yielding. (Alyssa Ross, #965)
|
|
324
|
+
arguments after yielding. (Alyssa Ross, rspec/rspec-expectations#965)
|
|
302
325
|
|
|
303
326
|
### 3.6.0.beta2 / 2016-12-12
|
|
304
327
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0.beta1...v3.6.0.beta2)
|
|
@@ -306,29 +329,29 @@ Bug Fixes:
|
|
|
306
329
|
Bug Fixes:
|
|
307
330
|
|
|
308
331
|
* Using the exist matcher on `File` no longer produces a deprecation warning.
|
|
309
|
-
(Jon Rowe, #954)
|
|
332
|
+
(Jon Rowe, rspec/rspec-expectations#954)
|
|
310
333
|
|
|
311
334
|
### 3.6.0.beta1 / 2016-10-09
|
|
312
335
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0...v3.6.0.beta1)
|
|
313
336
|
|
|
314
337
|
Bug Fixes:
|
|
315
338
|
|
|
316
|
-
* Fix `contain_exactly` to work correctly with ranges. (Myron Marston, #940)
|
|
317
|
-
* Fix `change` to work correctly with sets. (Marcin Gajewski, #939)
|
|
339
|
+
* Fix `contain_exactly` to work correctly with ranges. (Myron Marston, rspec/rspec-expectations#940)
|
|
340
|
+
* Fix `change` to work correctly with sets. (Marcin Gajewski, rspec/rspec-expectations#939)
|
|
318
341
|
|
|
319
342
|
### 3.5.0 / 2016-07-01
|
|
320
343
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0.beta4...v3.5.0)
|
|
321
344
|
|
|
322
345
|
Enhancements:
|
|
323
346
|
|
|
324
|
-
* Add support for keyword arguments to the `respond_to` matcher. (Rob Smith, #915).
|
|
347
|
+
* Add support for keyword arguments to the `respond_to` matcher. (Rob Smith, rspec/rspec-expectations#915).
|
|
325
348
|
|
|
326
349
|
### 3.5.0.beta4 / 2016-06-05
|
|
327
350
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0.beta3...v3.5.0.beta4)
|
|
328
351
|
|
|
329
352
|
Bug Fixes:
|
|
330
353
|
|
|
331
|
-
* Fix `include` matcher so that it provides a valid diff for hashes. (Yuji Nakayama, #916)
|
|
354
|
+
* Fix `include` matcher so that it provides a valid diff for hashes. (Yuji Nakayama, rspec/rspec-expectations#916)
|
|
332
355
|
|
|
333
356
|
### 3.5.0.beta3 / 2016-04-02
|
|
334
357
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0.beta2...v3.5.0.beta3)
|
|
@@ -336,11 +359,11 @@ Bug Fixes:
|
|
|
336
359
|
Enhancements:
|
|
337
360
|
|
|
338
361
|
* Make `rspec/expectations/minitest_integration` work on Minitest::Spec
|
|
339
|
-
5.6+. (Myron Marston, #904)
|
|
362
|
+
5.6+. (Myron Marston, rspec/rspec-expectations#904)
|
|
340
363
|
* Add an alias `having_attributes` for `have_attributes` matcher.
|
|
341
|
-
(Yuji Nakayama, #905)
|
|
364
|
+
(Yuji Nakayama, rspec/rspec-expectations#905)
|
|
342
365
|
* Improve `change` matcher error message when block is mis-used.
|
|
343
|
-
(Alex Altair, #908)
|
|
366
|
+
(Alex Altair, rspec/rspec-expectations#908)
|
|
344
367
|
|
|
345
368
|
### 3.5.0.beta2 / 2016-03-10
|
|
346
369
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0.beta1...v3.5.0.beta2)
|
|
@@ -348,15 +371,15 @@ Enhancements:
|
|
|
348
371
|
Enhancements:
|
|
349
372
|
|
|
350
373
|
* Add the ability to raise an error on encountering false positives via
|
|
351
|
-
`RSpec::Configuration#on_potential_false_positives = :raise`. (Jon Rowe, #900)
|
|
374
|
+
`RSpec::Configuration#on_potential_false_positives = :raise`. (Jon Rowe, rspec/rspec-expectations#900)
|
|
352
375
|
* When using the custom matcher DSL, support new
|
|
353
376
|
`notify_expectation_failures: true` option for the `match` method to
|
|
354
377
|
allow expectation failures to be raised as normal instead of being
|
|
355
|
-
converted into a `false` return value for `matches?`. (Jon Rowe, #892)
|
|
378
|
+
converted into a `false` return value for `matches?`. (Jon Rowe, rspec/rspec-expectations#892)
|
|
356
379
|
|
|
357
380
|
Bug Fixes:
|
|
358
381
|
|
|
359
|
-
* Allow `should` deprecation check to work on `BasicObject`s. (James Coleman, #898)
|
|
382
|
+
* Allow `should` deprecation check to work on `BasicObject`s. (James Coleman, rspec/rspec-expectations#898)
|
|
360
383
|
|
|
361
384
|
### 3.5.0.beta1 / 2016-02-06
|
|
362
385
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.4.0...v3.5.0.beta1)
|
|
@@ -364,14 +387,14 @@ Bug Fixes:
|
|
|
364
387
|
Enhancements:
|
|
365
388
|
|
|
366
389
|
* Make `match_when_negated` in custom matcher DSL support use of
|
|
367
|
-
expectations within the match logic. (Chris Arcand, #789)
|
|
390
|
+
expectations within the match logic. (Chris Arcand, rspec/rspec-expectations#789)
|
|
368
391
|
|
|
369
392
|
Bug Fixes:
|
|
370
393
|
|
|
371
394
|
* Return `true` as expected from passing negated expectations
|
|
372
395
|
(such as `expect("foo").not_to eq "bar"`), so they work
|
|
373
396
|
properly when used within a `match` or `match_when_negated`
|
|
374
|
-
block. (Chris Arcand, #789)
|
|
397
|
+
block. (Chris Arcand, rspec/rspec-expectations#789)
|
|
375
398
|
|
|
376
399
|
### 3.4.0 / 2015-11-11
|
|
377
400
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.3.1...v3.4.0)
|
|
@@ -380,22 +403,22 @@ Enhancements:
|
|
|
380
403
|
|
|
381
404
|
* Warn when `RSpec::Matchers` is included in a superclass after it has
|
|
382
405
|
already been included in a subclass on MRI 1.9, since that situation
|
|
383
|
-
can cause uses of `super` to trigger infinite recursion. (Myron Marston, #816)
|
|
406
|
+
can cause uses of `super` to trigger infinite recursion. (Myron Marston, rspec/rspec-expectations#816)
|
|
384
407
|
* Stop rescuing `NoMemoryError`, `SignalExcepetion`, `Interrupt` and
|
|
385
|
-
`SystemExit`. It is dangerous to interfere with these. (Myron Marston, #845)
|
|
408
|
+
`SystemExit`. It is dangerous to interfere with these. (Myron Marston, rspec/rspec-expectations#845)
|
|
386
409
|
* Add `#with_captures` to the match matcher which allows a user to specify expected
|
|
387
|
-
captures when matching a regex against a string. (Sam Phippen, #848)
|
|
410
|
+
captures when matching a regex against a string. (Sam Phippen, rspec/rspec-expectations#848)
|
|
388
411
|
* Always print compound failure messages in the multi-line form. Trying
|
|
389
|
-
to print it all on a single line didn't read very well. (Myron Marston, #859)
|
|
412
|
+
to print it all on a single line didn't read very well. (Myron Marston, rspec/rspec-expectations#859)
|
|
390
413
|
|
|
391
414
|
Bug Fixes:
|
|
392
415
|
|
|
393
416
|
* Fix failure message from dynamic predicate matchers when the object
|
|
394
417
|
does not respond to the predicate so that it is inspected rather
|
|
395
418
|
than relying upon its `to_s` -- that way for `nil`, `"nil"` is
|
|
396
|
-
printed rather than an empty string. (Myron Marston, #841)
|
|
419
|
+
printed rather than an empty string. (Myron Marston, rspec/rspec-expectations#841)
|
|
397
420
|
* Fix SystemStackError raised when diffing an Enumerable object
|
|
398
|
-
whose `#each` includes the object itself. (Yuji Nakayama, #857)
|
|
421
|
+
whose `#each` includes the object itself. (Yuji Nakayama, rspec/rspec-expectations#857)
|
|
399
422
|
|
|
400
423
|
### 3.3.1 / 2015-07-15
|
|
401
424
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.3.0...v3.3.1)
|
|
@@ -405,9 +428,9 @@ Bug Fixes:
|
|
|
405
428
|
* Fix `be >`, `be <`, etc so that it fails rather than allowing an
|
|
406
429
|
argument error to be raised when compared against an object of the
|
|
407
430
|
wrong type. This allows it to be used in composed matcher expressions
|
|
408
|
-
against heterogeneous objects. (Dennis Günnewig, #809)
|
|
431
|
+
against heterogeneous objects. (Dennis Günnewig, rspec/rspec-expectations#809)
|
|
409
432
|
* Fix `respond_to` to work properly on target objects
|
|
410
|
-
that redefine the `method` method. (unmanbearpig, #821)
|
|
433
|
+
that redefine the `method` method. (unmanbearpig, rspec/rspec-expectations#821)
|
|
411
434
|
|
|
412
435
|
### 3.3.0 / 2015-06-12
|
|
413
436
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.2.1...v3.3.0)
|
|
@@ -415,50 +438,50 @@ Bug Fixes:
|
|
|
415
438
|
Enhancements:
|
|
416
439
|
|
|
417
440
|
* Expose `RSpec::Matchers::EnglishPhrasing` to make it easier to write
|
|
418
|
-
nice failure messages in custom matchers. (Jared Beck, #736)
|
|
441
|
+
nice failure messages in custom matchers. (Jared Beck, rspec/rspec-expectations#736)
|
|
419
442
|
* Add `RSpec::Matchers::FailMatchers`, a mixin which provides
|
|
420
443
|
`fail`, `fail_with` and `fail_including` matchers for use in
|
|
421
444
|
specifying that an expectation fails for use by
|
|
422
|
-
extension/plugin authors. (Charlie Rudolph, #729)
|
|
445
|
+
extension/plugin authors. (Charlie Rudolph, rspec/rspec-expectations#729)
|
|
423
446
|
* Avoid loading `tempfile` (and its dependencies) unless
|
|
424
|
-
it is absolutely needed. (Myron Marston, #735)
|
|
447
|
+
it is absolutely needed. (Myron Marston, rspec/rspec-expectations#735)
|
|
425
448
|
* Improve failure output when attempting to use `be_true` or `be_false`.
|
|
426
|
-
(Tim Wade, #744)
|
|
449
|
+
(Tim Wade, rspec/rspec-expectations#744)
|
|
427
450
|
* Define `RSpec::Matchers#respond_to_missing?` so that
|
|
428
451
|
`RSpec::Matchers#respond_to?` and `RSpec::Matchers#method` handle
|
|
429
|
-
dynamic predicate matchers. (Andrei Botalov, #751)
|
|
452
|
+
dynamic predicate matchers. (Andrei Botalov, rspec/rspec-expectations#751)
|
|
430
453
|
* Use custom Time/DateTime/BigDecimal formatting for all matchers
|
|
431
454
|
so they are consistently represented in failure messages.
|
|
432
|
-
(Gavin Miller, #740)
|
|
455
|
+
(Gavin Miller, rspec/rspec-expectations#740)
|
|
433
456
|
* Add configuration to turn off warnings about matcher combinations that
|
|
434
|
-
may cause false positives. (Jon Rowe, #768)
|
|
457
|
+
may cause false positives. (Jon Rowe, rspec/rspec-expectations#768)
|
|
435
458
|
* Warn when using a bare `raise_error` matcher that you may be subject to
|
|
436
|
-
false positives. (Jon Rowe, #768)
|
|
459
|
+
false positives. (Jon Rowe, rspec/rspec-expectations#768)
|
|
437
460
|
* Warn rather than raise when using the`raise_error` matcher in negative
|
|
438
|
-
expectations that may be subject to false positives. (Jon Rowe, #775)
|
|
461
|
+
expectations that may be subject to false positives. (Jon Rowe, rspec/rspec-expectations#775)
|
|
439
462
|
* Improve failure message for `include(a, b, c)` so that if `a` and `b`
|
|
440
|
-
are included the failure message only mentions `c`. (Chris Arcand, #780)
|
|
463
|
+
are included the failure message only mentions `c`. (Chris Arcand, rspec/rspec-expectations#780)
|
|
441
464
|
* Allow `satisfy` matcher to take an optional description argument
|
|
442
465
|
that will be used in the `description`, `failure_message` and
|
|
443
466
|
`failure_message_when_negated` in place of the undescriptive
|
|
444
|
-
"sastify block". (Chris Arcand, #783)
|
|
467
|
+
"sastify block". (Chris Arcand, rspec/rspec-expectations#783)
|
|
445
468
|
* Add new `aggregate_failures` API that allows multiple independent
|
|
446
469
|
expectations to all fail and be listed in the failure output, rather
|
|
447
|
-
than the example aborting on the first failure. (Myron Marston, #776)
|
|
470
|
+
than the example aborting on the first failure. (Myron Marston, rspec/rspec-expectations#776)
|
|
448
471
|
* Improve `raise_error` matcher so that it can accept a matcher as a single argument
|
|
449
|
-
that matches the message. (Time Wade, #782)
|
|
472
|
+
that matches the message. (Time Wade, rspec/rspec-expectations#782)
|
|
450
473
|
|
|
451
474
|
Bug Fixes:
|
|
452
475
|
|
|
453
476
|
* Make `contain_exactly` / `match_array` work with strict test doubles
|
|
454
|
-
that have not defined `<=>`. (Myron Marston, #758)
|
|
477
|
+
that have not defined `<=>`. (Myron Marston, rspec/rspec-expectations#758)
|
|
455
478
|
* Fix `include` matcher so that it omits the diff when it would
|
|
456
479
|
confusingly highlight items that are actually included but are not
|
|
457
|
-
an exact match in a line-by-line diff. (Tim Wade, #763)
|
|
480
|
+
an exact match in a line-by-line diff. (Tim Wade, rspec/rspec-expectations#763)
|
|
458
481
|
* Fix `match` matcher so that it does not blow up when matching a string
|
|
459
482
|
or regex against another matcher (rather than a string or regex).
|
|
460
|
-
(Myron Marston, #772)
|
|
461
|
-
* Silence whitespace-only diffs. (Myron Marston, #801)
|
|
483
|
+
(Myron Marston, rspec/rspec-expectations#772)
|
|
484
|
+
* Silence whitespace-only diffs. (Myron Marston, rspec/rspec-expectations#801)
|
|
462
485
|
|
|
463
486
|
### 3.2.1 / 2015-04-06
|
|
464
487
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.2.0...v3.2.1)
|
|
@@ -466,9 +489,9 @@ Bug Fixes:
|
|
|
466
489
|
Bug Fixes:
|
|
467
490
|
|
|
468
491
|
* Prevent `Range`s from being enumerated when generating matcher
|
|
469
|
-
descriptions. (Jon Rowe, #755)
|
|
492
|
+
descriptions. (Jon Rowe, rspec/rspec-expectations#755)
|
|
470
493
|
* Ensure exception messages are compared as strings in the `raise_error`
|
|
471
|
-
matcher. (Jon Rowe, #755)
|
|
494
|
+
matcher. (Jon Rowe, rspec/rspec-expectations#755)
|
|
472
495
|
|
|
473
496
|
### 3.2.0 / 2015-02-03
|
|
474
497
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.2...v3.2.0)
|
|
@@ -477,25 +500,25 @@ Enhancements:
|
|
|
477
500
|
|
|
478
501
|
* Add `block_arg` method to custom matcher API, which allows you to
|
|
479
502
|
access the block passed to a custom matcher, if there is one.
|
|
480
|
-
(Mike Dalton, #645)
|
|
503
|
+
(Mike Dalton, rspec/rspec-expectations#645)
|
|
481
504
|
* Provide more detail in failure message of `yield_control` matcher.
|
|
482
|
-
(Jon Rowe, #650)
|
|
505
|
+
(Jon Rowe, rspec/rspec-expectations#650)
|
|
483
506
|
* Add a shorthand syntax for `chain` in the matcher DSL which assigns values
|
|
484
507
|
for use elsewhere, for example `chain :and_smaller_than, :small_value`
|
|
485
|
-
creates an `attr_reader` for `small_value` (Tom Stuart, #644)
|
|
508
|
+
creates an `attr_reader` for `small_value` (Tom Stuart, rspec/rspec-expectations#644)
|
|
486
509
|
* Provide a more helpful deprecation message when using the `should` syntax.
|
|
487
|
-
(Elia Schito, #663)
|
|
510
|
+
(Elia Schito, rspec/rspec-expectations#663)
|
|
488
511
|
* Provide more detail in the `have_attributes` matcher failure message.
|
|
489
|
-
(Jon Rowe, #668)
|
|
512
|
+
(Jon Rowe, rspec/rspec-expectations#668)
|
|
490
513
|
* Make the `have_attributes` matcher diffable.
|
|
491
|
-
(Jon Rowe, Alexey Fedorov, #668)
|
|
514
|
+
(Jon Rowe, Alexey Fedorov, rspec/rspec-expectations#668)
|
|
492
515
|
* Add `output(...).to_std(out|err)_from_any_process` as alternatives
|
|
493
516
|
to `output(...).to_std(out|err)`. The latter doesn't work when a sub
|
|
494
517
|
process writes to the named stream but is much faster.
|
|
495
|
-
(Alex Genco, #700)
|
|
518
|
+
(Alex Genco, rspec/rspec-expectations#700)
|
|
496
519
|
* Improve compound matchers (created by `and` and `or`) so that diffs
|
|
497
520
|
are included in failures when one or more of their matchers
|
|
498
|
-
are diffable. (Alexey Fedorov, #713)
|
|
521
|
+
are diffable. (Alexey Fedorov, rspec/rspec-expectations#713)
|
|
499
522
|
|
|
500
523
|
Bug Fixes:
|
|
501
524
|
|
|
@@ -503,17 +526,17 @@ Bug Fixes:
|
|
|
503
526
|
the target object if the object publicly responds to the predicate
|
|
504
527
|
method. This avoids a possible error that can occur if the object
|
|
505
528
|
raises errors from `private_methods` (which can happen with celluloid
|
|
506
|
-
objects). (@chapmajs, #670)
|
|
529
|
+
objects). (@chapmajs, rspec/rspec-expectations#670)
|
|
507
530
|
* Make `yield_control` (with no modifier) default to
|
|
508
531
|
`at_least(:once)` rather than raising a confusing error
|
|
509
532
|
when multiple yields are encountered.
|
|
510
|
-
(Myron Marston, #675)
|
|
533
|
+
(Myron Marston, rspec/rspec-expectations#675)
|
|
511
534
|
* Fix "instance variable @color not initialized" warning when using
|
|
512
|
-
rspec-expectations outside of an rspec-core context. (Myron Marston, #689)
|
|
535
|
+
rspec-expectations outside of an rspec-core context. (Myron Marston, rspec/rspec-expectations#689)
|
|
513
536
|
* Fix `start_with` and `end_with` to work properly when checking a
|
|
514
|
-
string against an array of strings. (Myron Marston, #690)
|
|
537
|
+
string against an array of strings. (Myron Marston, rspec/rspec-expectations#690)
|
|
515
538
|
* Don't use internally delegated matchers when generating descriptions
|
|
516
|
-
for examples without doc strings. (Myron Marston, #692)
|
|
539
|
+
for examples without doc strings. (Myron Marston, rspec/rspec-expectations#692)
|
|
517
540
|
|
|
518
541
|
### 3.1.2 / 2014-09-26
|
|
519
542
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.1...v3.1.2)
|
|
@@ -522,9 +545,9 @@ Bug Fixes:
|
|
|
522
545
|
|
|
523
546
|
* Fix `define_negated_matcher` so that matchers that support fluent
|
|
524
547
|
interfaces continue to be negated after you use the chained method.
|
|
525
|
-
(Myron Marston, #656)
|
|
548
|
+
(Myron Marston, rspec/rspec-expectations#656)
|
|
526
549
|
* Fix `define_negated_matcher` so that the matchers fail with an
|
|
527
|
-
appropriate failure message. (Myron Marston, #659)
|
|
550
|
+
appropriate failure message. (Myron Marston, rspec/rspec-expectations#659)
|
|
528
551
|
|
|
529
552
|
### 3.1.1 / 2014-09-15
|
|
530
553
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.0...v3.1.1)
|
|
@@ -533,7 +556,7 @@ Bug Fixes:
|
|
|
533
556
|
|
|
534
557
|
* Fix regression in `all` matcher in 3.1.0 that prevented it from
|
|
535
558
|
working on objects that are not `Enumerable` but do implement
|
|
536
|
-
`each_with_index` (such as an ActiveRecord proxy). (Jori Hardman, #647)
|
|
559
|
+
`each_with_index` (such as an ActiveRecord proxy). (Jori Hardman, rspec/rspec-expectations#647)
|
|
537
560
|
|
|
538
561
|
### 3.1.0 / 2014-09-04
|
|
539
562
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.4...v3.1.0)
|
|
@@ -545,26 +568,26 @@ Enhancements:
|
|
|
545
568
|
`Person = Struct.new(:name, :age)`
|
|
546
569
|
`person = Person.new("Bob", 32)`
|
|
547
570
|
`expect(person).to have_attributes(:name => "Bob", :age => 32)`.
|
|
548
|
-
(Adam Farhi, #571)
|
|
571
|
+
(Adam Farhi, rspec/rspec-expectations#571)
|
|
549
572
|
* Extended compound matcher support to block matchers, for cases like:
|
|
550
573
|
`expect { ... }.to change { x }.to(3).and change { y }.to(4)`. (Myron
|
|
551
|
-
Marston, #567)
|
|
574
|
+
Marston, rspec/rspec-expectations#567)
|
|
552
575
|
* Include chained methods in custom matcher description and failure message
|
|
553
576
|
when new `include_chain_clauses_in_custom_matcher_descriptions` config
|
|
554
|
-
option is enabled. (Dan Oved, #600)
|
|
577
|
+
option is enabled. (Dan Oved, rspec/rspec-expectations#600)
|
|
555
578
|
* Add `thrice` modifier to `yield_control` matcher as a synonym for
|
|
556
|
-
`exactly(3).times`. (Dennis Taylor, #615)
|
|
579
|
+
`exactly(3).times`. (Dennis Taylor, rspec/rspec-expectations#615)
|
|
557
580
|
* Add `RSpec::Matchers.define_negated_matcher`, which defines a negated
|
|
558
|
-
version of the named matcher. (Adam Farhi, Myron Marston, #618)
|
|
581
|
+
version of the named matcher. (Adam Farhi, Myron Marston, rspec/rspec-expectations#618)
|
|
559
582
|
* Document and support negation of `contain_exactly`/`match_array`.
|
|
560
|
-
(Jon Rowe, #626).
|
|
583
|
+
(Jon Rowe, rspec/rspec-expectations#626).
|
|
561
584
|
|
|
562
585
|
Bug Fixes:
|
|
563
586
|
|
|
564
587
|
* Rename private `LegacyMacherAdapter` constant to `LegacyMatcherAdapter`
|
|
565
|
-
to fix typo. (Abdelkader Boudih, #563)
|
|
588
|
+
to fix typo. (Abdelkader Boudih, rspec/rspec-expectations#563)
|
|
566
589
|
* Fix `all` matcher so that it fails properly (rather than raising a
|
|
567
|
-
`NoMethodError`) when matched against a non-enumerable. (Hao Su, #622)
|
|
590
|
+
`NoMethodError`) when matched against a non-enumerable. (Hao Su, rspec/rspec-expectations#622)
|
|
568
591
|
|
|
569
592
|
### 3.0.4 / 2014-08-14
|
|
570
593
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.3...v3.0.4)
|
|
@@ -572,12 +595,12 @@ Bug Fixes:
|
|
|
572
595
|
Bug Fixes:
|
|
573
596
|
|
|
574
597
|
* Fix `start_with` and `end_with` so that they work properly with
|
|
575
|
-
structs. (Myron Marston, #620)
|
|
598
|
+
structs. (Myron Marston, rspec/rspec-expectations#620)
|
|
576
599
|
* Fix failure message generation so that structs are printed properly
|
|
577
600
|
in failures. Previously failure messages would represent them as
|
|
578
|
-
an array. (Myron Marston, #620)
|
|
601
|
+
an array. (Myron Marston, rspec/rspec-expectations#620)
|
|
579
602
|
* Fix composable matcher support so that it does not wrongly treat
|
|
580
|
-
structs as arrays. (Myron Marston, #620)
|
|
603
|
+
structs as arrays. (Myron Marston, rspec/rspec-expectations#620)
|
|
581
604
|
|
|
582
605
|
### 3.0.3 / 2014-07-21
|
|
583
606
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.2...v3.0.3)
|
|
@@ -585,10 +608,10 @@ Bug Fixes:
|
|
|
585
608
|
Bug Fixes:
|
|
586
609
|
|
|
587
610
|
* Fix issue with detection of generic operator matchers so they work
|
|
588
|
-
correctly when undefined. (Myron Marston, #597)
|
|
589
|
-
* Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, #603)
|
|
611
|
+
correctly when undefined. (Myron Marston, rspec/rspec-expectations#597)
|
|
612
|
+
* Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, rspec/rspec-expectations#603)
|
|
590
613
|
* Fix `include` matcher so that it fails gracefully when matched against
|
|
591
|
-
an object that does not respond to `include?`. (Myron Marston, #607)
|
|
614
|
+
an object that does not respond to `include?`. (Myron Marston, rspec/rspec-expectations#607)
|
|
592
615
|
|
|
593
616
|
### 3.0.2 / 2014-06-19
|
|
594
617
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.1...v3.0.2)
|
|
@@ -596,12 +619,12 @@ Bug Fixes:
|
|
|
596
619
|
Bug Fixes:
|
|
597
620
|
|
|
598
621
|
* Fix regression in `contain_exactly` (AKA `match_array`) that caused it
|
|
599
|
-
to wrongly pass when the expected array was empty. (Myron Marston, #581)
|
|
622
|
+
to wrongly pass when the expected array was empty. (Myron Marston, rspec/rspec-expectations#581)
|
|
600
623
|
* Provide a better error message when you use the `change(obj, :msg)`
|
|
601
624
|
form of the change matcher but forget the message argument. (Alex
|
|
602
|
-
Sunderland, #585)
|
|
625
|
+
Sunderland, rspec/rspec-expectations#585)
|
|
603
626
|
* Make the `contain_exactly` matcher work with arrays that contain hashes in
|
|
604
|
-
arbitrary ordering. (Sam Phippen, #578)
|
|
627
|
+
arbitrary ordering. (Sam Phippen, rspec/rspec-expectations#578)
|
|
605
628
|
|
|
606
629
|
### 3.0.1 / 2014-06-12
|
|
607
630
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.0...v3.0.1)
|
|
@@ -610,8 +633,8 @@ Bug Fixes:
|
|
|
610
633
|
|
|
611
634
|
* Add a missing `require` that would cause the `respond_to` matcher to
|
|
612
635
|
fail when used in a project where the rest of RSpec (e.g. core and
|
|
613
|
-
|
|
614
|
-
* Structs are no longer treated as arrays when diffed. (Jon Rowe, #576)
|
|
636
|
+
expectations) weren't being used. (Myron Marston, rspec/rspec-expectations#566)
|
|
637
|
+
* Structs are no longer treated as arrays when diffed. (Jon Rowe, rspec/rspec-expectations#576)
|
|
615
638
|
|
|
616
639
|
### 3.0.0 / 2014-06-01
|
|
617
640
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.0.rc1...v3.0.0)
|
|
@@ -829,9 +852,9 @@ Bug Fixes:
|
|
|
829
852
|
|
|
830
853
|
* Fix regression in `Expectations#method_handle_for` where proxy objects
|
|
831
854
|
with method delegated would wrongly not return a method handle.
|
|
832
|
-
(Jon Rowe, #594)
|
|
855
|
+
(Jon Rowe, rspec/rspec-expectations#594)
|
|
833
856
|
* Fix issue with detection of generic operator matchers so they work
|
|
834
|
-
correctly when undefined. (Myron Marston, #597)
|
|
857
|
+
correctly when undefined. (Myron Marston, rspec/rspec-expectations#597)
|
|
835
858
|
|
|
836
859
|
### 2.99.1 / 2014-06-19
|
|
837
860
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.99.0...v2.99.1)
|
|
@@ -839,7 +862,7 @@ Bug Fixes:
|
|
|
839
862
|
Bug Fixes:
|
|
840
863
|
|
|
841
864
|
* Fix typo in custom matcher `expected` deprecation warning -- it's
|
|
842
|
-
`expected_as_array`, not `expected_array`. (Frederick Cheung, #562)
|
|
865
|
+
`expected_as_array`, not `expected_array`. (Frederick Cheung, rspec/rspec-expectations#562)
|
|
843
866
|
|
|
844
867
|
### 2.99.0 / 2014-06-01
|
|
845
868
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.99.0.rc1...v2.99.0)
|
|
@@ -179,11 +179,18 @@ module RSpec
|
|
|
179
179
|
# no-op, handler is something else
|
|
180
180
|
end
|
|
181
181
|
end
|
|
182
|
+
|
|
183
|
+
# Configures what RSpec will do about matcher use which would potentially cause
|
|
184
|
+
# false positives in tests. Defaults to `:warn` since this is generally the desired behavior,
|
|
185
|
+
# but can also be set to `:raise` or `:nothing`.
|
|
182
186
|
#
|
|
183
|
-
#
|
|
184
|
-
#
|
|
185
|
-
#
|
|
186
|
-
#
|
|
187
|
+
# @overload on_potential_false_positives
|
|
188
|
+
# @return [Symbol] the behavior setting
|
|
189
|
+
# @overload on_potential_false_positives=(value)
|
|
190
|
+
# @param [Symbol] behavior can be set to `:warn`, `:raise` or `:nothing`
|
|
191
|
+
# @return [Symbol] the behavior setting
|
|
192
|
+
attr_reader :on_potential_false_positives
|
|
193
|
+
|
|
187
194
|
def on_potential_false_positives=(behavior)
|
|
188
195
|
unless FALSE_POSITIVE_BEHAVIOURS.key?(behavior)
|
|
189
196
|
raise ArgumentError, "Supported values are: #{FALSE_POSITIVE_BEHAVIOURS.keys}"
|
|
@@ -194,22 +201,24 @@ module RSpec
|
|
|
194
201
|
# Configures RSpec to check predicate matchers to `be(true)` / `be(false)` (strict),
|
|
195
202
|
# or `be_truthy` / `be_falsey` (not strict).
|
|
196
203
|
# Historically, the default was `false`, but `true` is recommended.
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
204
|
+
#
|
|
205
|
+
# @overload strict_predicate_matchers
|
|
206
|
+
# @return [Boolean]
|
|
207
|
+
# @overload strict_predicate_matchers?
|
|
208
|
+
# @return [Boolean]
|
|
209
|
+
# @overload strict_predicate_matchers=(value)
|
|
210
|
+
# @param [Boolean] value
|
|
202
211
|
attr_reader :strict_predicate_matchers
|
|
203
212
|
|
|
213
|
+
def strict_predicate_matchers=(value)
|
|
214
|
+
raise ArgumentError, "Pass `true` or `false`" unless value == true || value == false
|
|
215
|
+
@strict_predicate_matchers = value
|
|
216
|
+
end
|
|
217
|
+
|
|
204
218
|
def strict_predicate_matchers?
|
|
205
219
|
@strict_predicate_matchers
|
|
206
220
|
end
|
|
207
221
|
|
|
208
|
-
# Indicates what RSpec will do about matcher use which will
|
|
209
|
-
# potentially cause false positives in tests, generally you want to
|
|
210
|
-
# avoid such scenarios so this defaults to `true`.
|
|
211
|
-
attr_reader :on_potential_false_positives
|
|
212
|
-
|
|
213
222
|
# Indicates whether RSpec will warn about matcher use which will
|
|
214
223
|
# potentially cause false positives in tests, generally you want to
|
|
215
224
|
# avoid such scenarios so this defaults to `true`.
|
|
@@ -42,12 +42,12 @@ module RSpec
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
# @private
|
|
45
|
-
def matches?(event_proc)
|
|
45
|
+
def matches?(event_proc, &_)
|
|
46
46
|
raise_block_syntax_error if block_given?
|
|
47
47
|
perform_change(event_proc) && change_details.changed?
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
def does_not_match?(event_proc)
|
|
50
|
+
def does_not_match?(event_proc, &_)
|
|
51
51
|
raise_block_syntax_error if block_given?
|
|
52
52
|
perform_change(event_proc) && !change_details.changed?
|
|
53
53
|
end
|
|
@@ -167,6 +167,7 @@ module RSpec
|
|
|
167
167
|
|
|
168
168
|
def actual_collection_includes?(expected_item)
|
|
169
169
|
return actual.scan(expected_item).size > 0 if Regexp === expected_item && String === actual
|
|
170
|
+
return false if String === actual && !expected_item.respond_to?(:to_str, true)
|
|
170
171
|
return true if actual.include?(expected_item)
|
|
171
172
|
|
|
172
173
|
# String lacks an `any?` method...
|
|
@@ -33,11 +33,23 @@ module RSpec
|
|
|
33
33
|
self
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
# @api private
|
|
37
|
+
# @return [String]
|
|
38
|
+
def failure_message
|
|
39
|
+
if Array === expected && !(actual.respond_to?(:to_a) || actual.respond_to?(:to_ary))
|
|
40
|
+
return "expected a collection that can be converted to an array with " \
|
|
41
|
+
"`#to_ary` or `#to_a`, but got #{actual_formatted}"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
super
|
|
45
|
+
end
|
|
46
|
+
|
|
36
47
|
private
|
|
37
48
|
|
|
38
49
|
def match(expected, actual)
|
|
39
50
|
return match_captures(expected, actual) if @expected_captures
|
|
40
51
|
return true if values_match?(expected, actual)
|
|
52
|
+
return false if Array === expected
|
|
41
53
|
return false unless can_safely_call_match?(expected, actual)
|
|
42
54
|
actual.match(expected)
|
|
43
55
|
end
|
|
@@ -137,7 +137,7 @@ module RSpec
|
|
|
137
137
|
end
|
|
138
138
|
|
|
139
139
|
def with_arity_string
|
|
140
|
-
"#{@expected_arity} argument#{@expected_arity == 1
|
|
140
|
+
"#{@expected_arity} argument#{'s' unless @expected_arity == 1}"
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
def with_keywords_string
|
|
@@ -150,7 +150,7 @@ module RSpec
|
|
|
150
150
|
"#{@expected_keywords[0...-1].map(&:inspect).join(', ')}, and #{@expected_keywords.last.inspect}"
|
|
151
151
|
end
|
|
152
152
|
|
|
153
|
-
"keyword#{@expected_keywords.count == 1
|
|
153
|
+
"keyword#{'s' unless @expected_keywords.count == 1} #{kw_str}"
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
def pp_names
|
data/lib/rspec/matchers/dsl.rb
CHANGED
|
@@ -467,11 +467,12 @@ module RSpec
|
|
|
467
467
|
@chained_method_clauses = []
|
|
468
468
|
@block_arg = block_arg
|
|
469
469
|
|
|
470
|
-
klass =
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
470
|
+
klass =
|
|
471
|
+
class << self
|
|
472
|
+
# See `Macros#define_user_override` above, for an explanation.
|
|
473
|
+
include(@user_method_defs = Module.new)
|
|
474
|
+
self
|
|
475
|
+
end
|
|
475
476
|
RSpec::Support::WithKeywordsWhenNeeded.class_exec(klass, *expected, &declarations)
|
|
476
477
|
end
|
|
477
478
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-expectations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.13.
|
|
4
|
+
version: 3.13.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Baker
|
|
8
8
|
- David Chelimsky
|
|
9
9
|
- Myron Marston
|
|
10
|
-
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain:
|
|
13
12
|
- |
|
|
14
13
|
-----BEGIN CERTIFICATE-----
|
|
15
|
-
|
|
14
|
+
MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXWMA0GCSqGSIb3DQEBCwUAMIGAMQswCQYD
|
|
16
15
|
VQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEO
|
|
17
16
|
MAwGA1UECgwFUlNwZWMxEzARBgNVBAMMCnJzcGVjLmluZm8xJTAjBgkqhkiG9w0B
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
CQEWFnJzcGVjQGdvb2dsZWdyb3Vwcy5jb20wHhcNMjYwMjE3MTE0ODM0WhcNMjcw
|
|
18
|
+
MjE3MTE0ODM0WjCBgDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24x
|
|
20
19
|
EDAOBgNVBAcMB1NlYXR0bGUxDjAMBgNVBAoMBVJTcGVjMRMwEQYDVQQDDApyc3Bl
|
|
21
20
|
Yy5pbmZvMSUwIwYJKoZIhvcNAQkBFhZyc3BlY0Bnb29nbGVncm91cHMuY29tMIIC
|
|
22
21
|
IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsSmjgcHaKlD0jizRJowi2bGI
|
|
@@ -30,22 +29,21 @@ cert_chain:
|
|
|
30
29
|
Xeh3EVdWY3vMB1pkhPwlsenpcmj5gOzrd54lELOVbCGHCf48iSqeflY2Lhe0pvzK
|
|
31
30
|
blXCJBDmtrebvus291rM/dHcbEfK1SVd5Wut/n131iouf6dnNCFskFygDcgBbthC
|
|
32
31
|
gpEMqf80lEmhX59VUsm0Pv6OEo+ZPHBvXPiJA6DShQh9t3YtpwyA8uVDMbT/i32u
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
F3MdtaDehhjC
|
|
32
|
+
2FUsqZbbJcCmkBrGposCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
|
33
|
+
HQYDVR0OBBYEFPPvQ5XT0Nvuhi6k+hrWVv35J+TeMA0GCSqGSIb3DQEBCwUAA4IC
|
|
34
|
+
AQBaeeGIZtBFDP33D1/4sXldSgwntVcL5qC5pcjamLWM4HK4/a6ePMy1uoX+dEnJ
|
|
35
|
+
J+BjZWURsUfFOob+xnUe8AMSbv9gupckfVehZoBzOvJDaWcALo8GKjJlmVtzEIqZ
|
|
36
|
+
TvBLO5zQwR4cWIrg0NWjkDOSQOrNNQ2Degv/aOFrR8dFPJSgxZG/IC0/t6s72cEt
|
|
37
|
+
V4SIe/NLIU4RyBzfgn/RBsalDEF1yIVlDWspMa78clS3bPmntkNyfLwIUwINDHhn
|
|
38
|
+
swFA8bEKMQWqRlupuRmEiy3nGe6az46YlPXzK5UWfXJ6Lb1wIE8W80TRx0HpSC7j
|
|
39
|
+
JfXPfQ0PLgiU4nnQqain2bIn96Ooco8kspeqp8rSJ8sbaMPTNmcFuwD3gzWsRnJ3
|
|
40
|
+
rIaJbmrUcq6DlJ7jfv3u5TPt4JWzDP7oDPf3nXNiF2Cn48Ne598G5lHH6Heyxe39
|
|
41
|
+
pYZdhEptKJWPHxbJWHXD02omKprkNuQKHpnXrW+mmbiO4IcqAMggiud+DaEQg20x
|
|
42
|
+
Dae4cNbvK5p3D+5xqvcEO2G4uCMDmJjrSd61kvTLBnm1qroHqrpi9GauEVWZZmD0
|
|
43
|
+
n0ph8oFAXOsKQWxZ+4uh6yGISk+WhngCZEVPZUjq7SIGAuVhQy2ZgwdjnLEz//lD
|
|
44
|
+
x0Qexp5yGeoxAL9qKM/RXYKtuRZBJV1z+L9A1YOtwaXXNg==
|
|
47
45
|
-----END CERTIFICATE-----
|
|
48
|
-
date:
|
|
46
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
49
47
|
dependencies:
|
|
50
48
|
- !ruby/object:Gem::Dependency
|
|
51
49
|
name: rspec-support
|
|
@@ -81,62 +79,6 @@ dependencies:
|
|
|
81
79
|
- - "<"
|
|
82
80
|
- !ruby/object:Gem::Version
|
|
83
81
|
version: '2.0'
|
|
84
|
-
- !ruby/object:Gem::Dependency
|
|
85
|
-
name: aruba
|
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
|
87
|
-
requirements:
|
|
88
|
-
- - "~>"
|
|
89
|
-
- !ruby/object:Gem::Version
|
|
90
|
-
version: 0.14.10
|
|
91
|
-
type: :development
|
|
92
|
-
prerelease: false
|
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
-
requirements:
|
|
95
|
-
- - "~>"
|
|
96
|
-
- !ruby/object:Gem::Version
|
|
97
|
-
version: 0.14.10
|
|
98
|
-
- !ruby/object:Gem::Dependency
|
|
99
|
-
name: cucumber
|
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
|
101
|
-
requirements:
|
|
102
|
-
- - ">="
|
|
103
|
-
- !ruby/object:Gem::Version
|
|
104
|
-
version: '1.3'
|
|
105
|
-
type: :development
|
|
106
|
-
prerelease: false
|
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
-
requirements:
|
|
109
|
-
- - ">="
|
|
110
|
-
- !ruby/object:Gem::Version
|
|
111
|
-
version: '1.3'
|
|
112
|
-
- !ruby/object:Gem::Dependency
|
|
113
|
-
name: minitest
|
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
|
115
|
-
requirements:
|
|
116
|
-
- - "~>"
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version: '5.2'
|
|
119
|
-
type: :development
|
|
120
|
-
prerelease: false
|
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
-
requirements:
|
|
123
|
-
- - "~>"
|
|
124
|
-
- !ruby/object:Gem::Version
|
|
125
|
-
version: '5.2'
|
|
126
|
-
- !ruby/object:Gem::Dependency
|
|
127
|
-
name: rake
|
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
|
129
|
-
requirements:
|
|
130
|
-
- - ">"
|
|
131
|
-
- !ruby/object:Gem::Version
|
|
132
|
-
version: 10.0.0
|
|
133
|
-
type: :development
|
|
134
|
-
prerelease: false
|
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
136
|
-
requirements:
|
|
137
|
-
- - ">"
|
|
138
|
-
- !ruby/object:Gem::Version
|
|
139
|
-
version: 10.0.0
|
|
140
82
|
description: rspec-expectations provides a simple, readable API to express expected
|
|
141
83
|
outcomes of a code example.
|
|
142
84
|
email: rspec@googlegroups.com
|
|
@@ -198,16 +140,16 @@ files:
|
|
|
198
140
|
- lib/rspec/matchers/matcher_delegator.rb
|
|
199
141
|
- lib/rspec/matchers/matcher_protocol.rb
|
|
200
142
|
- lib/rspec/matchers/multi_matcher_diff.rb
|
|
201
|
-
homepage: https://
|
|
143
|
+
homepage: https://rspec.info
|
|
202
144
|
licenses:
|
|
203
145
|
- MIT
|
|
204
146
|
metadata:
|
|
205
|
-
bug_tracker_uri: https://github.com/rspec/rspec
|
|
206
|
-
changelog_uri: https://github.com/rspec/rspec
|
|
147
|
+
bug_tracker_uri: https://github.com/rspec/rspec/issues
|
|
148
|
+
changelog_uri: https://github.com/rspec/rspec/blob/rspec-expectations-v3.13.6/rspec-expectations/Changelog.md
|
|
207
149
|
documentation_uri: https://rspec.info/documentation/
|
|
208
150
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
|
209
|
-
|
|
210
|
-
|
|
151
|
+
rubygems_mfa_required: 'true'
|
|
152
|
+
source_code_uri: https://github.com/rspec/rspec/blob/rspec-expectations-v3.13.6/rspec-expectations
|
|
211
153
|
rdoc_options:
|
|
212
154
|
- "--charset=UTF-8"
|
|
213
155
|
require_paths:
|
|
@@ -223,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
223
165
|
- !ruby/object:Gem::Version
|
|
224
166
|
version: '0'
|
|
225
167
|
requirements: []
|
|
226
|
-
rubygems_version:
|
|
227
|
-
signing_key:
|
|
168
|
+
rubygems_version: 4.0.20
|
|
228
169
|
specification_version: 4
|
|
229
|
-
summary: rspec-expectations-3.13.
|
|
170
|
+
summary: rspec-expectations-3.13.6
|
|
230
171
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|