repeatable 1.2.0 → 1.2.1
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
- data/.github/workflows/ci.yml +19 -23
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +16 -2
- data/Gemfile +1 -0
- data/Gemfile.lock +86 -73
- data/README.md +8 -5
- data/lib/repeatable/expression/date.rb +1 -0
- data/lib/repeatable/expression/range_in_year.rb +2 -0
- data/lib/repeatable/version.rb +1 -1
- data/rbi/repeatable.rbi +1 -1
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +3 -3
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/{commander@4.6.0.rbi → commander@5.0.0.rbi} +1 -0
- data/sorbet/rbi/gems/{diff-lcs@1.4.4.rbi → diff-lcs@1.6.2.rbi} +135 -83
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
- data/sorbet/rbi/gems/{highline@2.0.3.rbi → highline@3.0.1.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.13.2.rbi} +759 -233
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +11 -5
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +41 -9
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
- data/sorbet/rbi/gems/{parlour@8.1.0.rbi → parlour@9.1.2.rbi} +86 -68
- data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.9.0.rbi} +908 -891
- data/sorbet/rbi/gems/{prism@0.28.0.rbi → prism@1.4.0.rbi} +14078 -10249
- data/sorbet/rbi/gems/{pry@0.14.0.rbi → pry@0.15.2.rbi} +437 -244
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +36 -33
- data/sorbet/rbi/gems/{rake@13.0.3.rbi → rake@13.3.0.rbi} +83 -76
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
- data/sorbet/rbi/gems/rbs@3.9.5.rbi +6976 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.11.2.rbi} +1089 -1015
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.3.rbi} +833 -329
- data/sorbet/rbi/gems/{rspec-core@3.10.1.rbi → rspec-core@3.13.5.rbi} +1014 -613
- data/sorbet/rbi/gems/{rspec-expectations@3.10.1.rbi → rspec-expectations@3.13.5.rbi} +897 -638
- data/sorbet/rbi/gems/{rspec-mocks@3.10.2.rbi → rspec-mocks@3.13.5.rbi} +547 -444
- data/sorbet/rbi/gems/{rspec-support@3.10.2.rbi → rspec-support@3.13.5.rbi} +337 -304
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.46.0.rbi} +1678 -958
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.80.2.rbi} +11243 -5431
- data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +225 -0
- data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +39 -25
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +233 -2
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
- data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.51.0.rbi} +181 -96
- data/sorbet/rbi/gems/{tapioca@0.13.3.rbi → tapioca@0.16.11.rbi} +489 -388
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.4.0.rbi} +94 -46
- data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.1.0.rbi +251 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -236
- metadata +46 -40
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3071
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -76
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -216
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4420
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +0 -0
@@ -4,70 +4,77 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `rspec-expectations` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem rspec-expectations`.
|
6
6
|
|
7
|
+
|
7
8
|
# RSpec's top level namespace. All of rspec-expectations is contained
|
8
9
|
# in the `RSpec::Expectations` and `RSpec::Matchers` namespaces.
|
9
10
|
#
|
10
11
|
# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#1
|
11
12
|
module RSpec
|
12
13
|
class << self
|
13
|
-
# source://rspec-core/3.
|
14
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#70
|
14
15
|
def clear_examples; end
|
15
16
|
|
16
|
-
# source://rspec-core/3.
|
17
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#85
|
17
18
|
def configuration; end
|
18
19
|
|
19
|
-
# source://rspec-core/3.
|
20
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#49
|
20
21
|
def configuration=(_arg0); end
|
21
22
|
|
22
|
-
# source://rspec-core/3.
|
23
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#97
|
23
24
|
def configure; end
|
24
25
|
|
25
|
-
# source://rspec-core/3.
|
26
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#194
|
26
27
|
def const_missing(name); end
|
27
28
|
|
28
|
-
# source://rspec-core/3.
|
29
|
+
# source://rspec-core/3.13.5/lib/rspec/core/dsl.rb#42
|
29
30
|
def context(*args, &example_group_block); end
|
30
31
|
|
31
|
-
# source://rspec-core/3.
|
32
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#122
|
32
33
|
def current_example; end
|
33
34
|
|
34
|
-
# source://rspec-core/3.
|
35
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#128
|
35
36
|
def current_example=(example); end
|
36
37
|
|
37
|
-
# source://rspec-core/3.
|
38
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#154
|
39
|
+
def current_scope; end
|
40
|
+
|
41
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#134
|
42
|
+
def current_scope=(scope); end
|
43
|
+
|
44
|
+
# source://rspec-core/3.13.5/lib/rspec/core/dsl.rb#42
|
38
45
|
def describe(*args, &example_group_block); end
|
39
46
|
|
40
|
-
# source://rspec-core/3.
|
47
|
+
# source://rspec-core/3.13.5/lib/rspec/core/dsl.rb#42
|
41
48
|
def example_group(*args, &example_group_block); end
|
42
49
|
|
43
|
-
# source://rspec-core/3.
|
50
|
+
# source://rspec-core/3.13.5/lib/rspec/core/dsl.rb#42
|
44
51
|
def fcontext(*args, &example_group_block); end
|
45
52
|
|
46
|
-
# source://rspec-core/3.
|
53
|
+
# source://rspec-core/3.13.5/lib/rspec/core/dsl.rb#42
|
47
54
|
def fdescribe(*args, &example_group_block); end
|
48
55
|
|
49
|
-
# source://rspec-core/3.
|
56
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#58
|
50
57
|
def reset; end
|
51
58
|
|
52
|
-
# source://rspec-core/3.
|
59
|
+
# source://rspec-core/3.13.5/lib/rspec/core/shared_example_group.rb#110
|
53
60
|
def shared_context(name, *args, &block); end
|
54
61
|
|
55
|
-
# source://rspec-core/3.
|
62
|
+
# source://rspec-core/3.13.5/lib/rspec/core/shared_example_group.rb#110
|
56
63
|
def shared_examples(name, *args, &block); end
|
57
64
|
|
58
|
-
# source://rspec-core/3.
|
65
|
+
# source://rspec-core/3.13.5/lib/rspec/core/shared_example_group.rb#110
|
59
66
|
def shared_examples_for(name, *args, &block); end
|
60
67
|
|
61
|
-
# source://rspec-core/3.
|
68
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#160
|
62
69
|
def world; end
|
63
70
|
|
64
|
-
# source://rspec-core/3.
|
71
|
+
# source://rspec-core/3.13.5/lib/rspec/core.rb#49
|
65
72
|
def world=(_arg0); end
|
66
73
|
|
67
|
-
# source://rspec-core/3.
|
74
|
+
# source://rspec-core/3.13.5/lib/rspec/core/dsl.rb#42
|
68
75
|
def xcontext(*args, &example_group_block); end
|
69
76
|
|
70
|
-
# source://rspec-core/3.
|
77
|
+
# source://rspec-core/3.13.5/lib/rspec/core/dsl.rb#42
|
71
78
|
def xdescribe(*args, &example_group_block); end
|
72
79
|
end
|
73
80
|
end
|
@@ -121,7 +128,7 @@ module RSpec::Expectations
|
|
121
128
|
#
|
122
129
|
# @return [RSpec::Expectations::Configuration] the configuration object
|
123
130
|
#
|
124
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
131
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#237
|
125
132
|
def configuration; end
|
126
133
|
|
127
134
|
# @private
|
@@ -149,27 +156,27 @@ end
|
|
149
156
|
#
|
150
157
|
# @private
|
151
158
|
#
|
152
|
-
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#
|
159
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#136
|
153
160
|
class RSpec::Expectations::BlockExpectationTarget < ::RSpec::Expectations::ExpectationTarget
|
154
|
-
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#
|
161
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142
|
155
162
|
def not_to(matcher, message = T.unsafe(nil), &block); end
|
156
163
|
|
157
|
-
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#
|
164
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#137
|
158
165
|
def to(matcher, message = T.unsafe(nil), &block); end
|
159
166
|
|
160
|
-
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#
|
167
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142
|
161
168
|
def to_not(matcher, message = T.unsafe(nil), &block); end
|
162
169
|
|
163
170
|
private
|
164
171
|
|
165
172
|
# @raise [ExpectationNotMetError]
|
166
173
|
#
|
167
|
-
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#
|
174
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#150
|
168
175
|
def enforce_block_expectation(matcher); end
|
169
176
|
|
170
177
|
# @return [Boolean]
|
171
178
|
#
|
172
|
-
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#
|
179
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#158
|
173
180
|
def supports_block_expectations?(matcher); end
|
174
181
|
end
|
175
182
|
|
@@ -201,13 +208,13 @@ class RSpec::Expectations::BlockSnippetExtractor
|
|
201
208
|
|
202
209
|
private
|
203
210
|
|
204
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
211
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#62
|
205
212
|
def beginning_line_number; end
|
206
213
|
|
207
214
|
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#39
|
208
215
|
def block_token_extractor; end
|
209
216
|
|
210
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
217
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#58
|
211
218
|
def file_path; end
|
212
219
|
|
213
220
|
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#31
|
@@ -221,7 +228,7 @@ class RSpec::Expectations::BlockSnippetExtractor
|
|
221
228
|
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#44
|
222
229
|
def source; end
|
223
230
|
|
224
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
231
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#66
|
225
232
|
def source_location; end
|
226
233
|
|
227
234
|
class << self
|
@@ -230,14 +237,14 @@ class RSpec::Expectations::BlockSnippetExtractor
|
|
230
237
|
end
|
231
238
|
end
|
232
239
|
|
233
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
240
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#72
|
234
241
|
class RSpec::Expectations::BlockSnippetExtractor::AmbiguousTargetError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end
|
235
242
|
|
236
243
|
# Locates target block with node information (semantics), which tokens don't have.
|
237
244
|
#
|
238
245
|
# @private
|
239
246
|
#
|
240
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
247
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200
|
241
248
|
class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct
|
242
249
|
# Returns the value of attribute beginning_line_number
|
243
250
|
#
|
@@ -250,10 +257,10 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct
|
|
250
257
|
# @return [Object] the newly set value
|
251
258
|
def beginning_line_number=(_); end
|
252
259
|
|
253
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
260
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#205
|
254
261
|
def body_content_locations; end
|
255
262
|
|
256
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
263
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#201
|
257
264
|
def method_call_location; end
|
258
265
|
|
259
266
|
# Returns the value of attribute method_name
|
@@ -280,24 +287,24 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct
|
|
280
287
|
|
281
288
|
private
|
282
289
|
|
283
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
290
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#218
|
284
291
|
def block_body_node; end
|
285
292
|
|
286
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
293
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#223
|
287
294
|
def block_wrapper_node; end
|
288
295
|
|
289
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
296
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#234
|
290
297
|
def candidate_block_wrapper_nodes; end
|
291
298
|
|
292
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
299
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#243
|
293
300
|
def candidate_method_ident_nodes; end
|
294
301
|
|
295
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
302
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#211
|
296
303
|
def method_ident_node; end
|
297
304
|
|
298
305
|
# @return [Boolean]
|
299
306
|
#
|
300
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
307
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#249
|
301
308
|
def method_ident_node?(node); end
|
302
309
|
|
303
310
|
class << self
|
@@ -314,11 +321,11 @@ end
|
|
314
321
|
#
|
315
322
|
# @private
|
316
323
|
#
|
317
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
324
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77
|
318
325
|
class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct
|
319
326
|
# @return [BlockTokenExtractor] a new instance of BlockTokenExtractor
|
320
327
|
#
|
321
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
328
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#80
|
322
329
|
def initialize(*_arg0); end
|
323
330
|
|
324
331
|
# Returns the value of attribute beginning_line_number
|
@@ -334,7 +341,7 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct
|
|
334
341
|
|
335
342
|
# Returns the value of attribute body_tokens.
|
336
343
|
#
|
337
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
344
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#78
|
338
345
|
def body_tokens; end
|
339
346
|
|
340
347
|
# Returns the value of attribute method_name
|
@@ -361,69 +368,69 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct
|
|
361
368
|
|
362
369
|
# Returns the value of attribute state.
|
363
370
|
#
|
364
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
371
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#78
|
365
372
|
def state; end
|
366
373
|
|
367
374
|
private
|
368
375
|
|
369
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
376
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#126
|
370
377
|
def after_beginning_of_args_state(token); end
|
371
378
|
|
372
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
379
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#130
|
373
380
|
def after_beginning_of_body_state(token); end
|
374
381
|
|
375
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
382
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#109
|
376
383
|
def after_method_call_state(token); end
|
377
384
|
|
378
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
385
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#113
|
379
386
|
def after_opener_state(token); end
|
380
387
|
|
381
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
388
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#193
|
382
389
|
def block_locator; end
|
383
390
|
|
384
391
|
# @return [Boolean]
|
385
392
|
#
|
386
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
393
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#187
|
387
394
|
def correct_block?(body_tokens); end
|
388
395
|
|
389
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
396
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#143
|
390
397
|
def finalize_pending_tokens!; end
|
391
398
|
|
392
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
399
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#97
|
393
400
|
def finish!; end
|
394
401
|
|
395
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
402
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#149
|
396
403
|
def finish_or_find_next_block_if_incorrect!; end
|
397
404
|
|
398
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
405
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#170
|
399
406
|
def handle_closer_token(token); end
|
400
407
|
|
401
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
408
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#160
|
402
409
|
def handle_opener_token(token); end
|
403
410
|
|
404
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
411
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#105
|
405
412
|
def initial_state(token); end
|
406
413
|
|
407
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
414
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#101
|
408
415
|
def invoke_state_handler(token); end
|
409
416
|
|
410
417
|
# @return [Boolean]
|
411
418
|
#
|
412
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
419
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#166
|
413
420
|
def opener_token?(token); end
|
414
421
|
|
415
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
422
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#179
|
416
423
|
def opener_token_stack; end
|
417
424
|
|
418
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
425
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#87
|
419
426
|
def parse!; end
|
420
427
|
|
421
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
428
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#139
|
422
429
|
def pending_tokens; end
|
423
430
|
|
424
431
|
# @return [Boolean]
|
425
432
|
#
|
426
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
433
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#183
|
427
434
|
def pipe_token?(token); end
|
428
435
|
|
429
436
|
class << self
|
@@ -435,10 +442,10 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct
|
|
435
442
|
end
|
436
443
|
end
|
437
444
|
|
438
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
445
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#70
|
439
446
|
class RSpec::Expectations::BlockSnippetExtractor::Error < ::StandardError; end
|
440
447
|
|
441
|
-
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#
|
448
|
+
# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#71
|
442
449
|
class RSpec::Expectations::BlockSnippetExtractor::TargetNotFoundError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end
|
443
450
|
|
444
451
|
# Provides configuration options for rspec-expectations.
|
@@ -464,6 +471,8 @@ class RSpec::Expectations::Configuration
|
|
464
471
|
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#29
|
465
472
|
def initialize; end
|
466
473
|
|
474
|
+
# :nocov: Because this is only really _useful_ on 1.8, and hard to test elsewhere.
|
475
|
+
#
|
467
476
|
# Adds `should` and `should_not` to the given classes
|
468
477
|
# or modules. This can be used to ensure `should` works
|
469
478
|
# properly on things like proxy objects (particular
|
@@ -472,7 +481,7 @@ class RSpec::Expectations::Configuration
|
|
472
481
|
# @param modules [Array<Module>] the list of classes or modules
|
473
482
|
# to add `should` and `should_not` to.
|
474
483
|
#
|
475
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
484
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#116
|
476
485
|
def add_should_and_should_not_to(*modules); end
|
477
486
|
|
478
487
|
# Sets or gets the backtrace formatter. The backtrace formatter should
|
@@ -484,7 +493,7 @@ class RSpec::Expectations::Configuration
|
|
484
493
|
# will be used (including respecting the presence or absence of
|
485
494
|
# the `--backtrace` option).
|
486
495
|
#
|
487
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
496
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#134
|
488
497
|
def backtrace_formatter; end
|
489
498
|
|
490
499
|
# Sets or gets the backtrace formatter. The backtrace formatter should
|
@@ -496,7 +505,7 @@ class RSpec::Expectations::Configuration
|
|
496
505
|
# will be used (including respecting the presence or absence of
|
497
506
|
# the `--backtrace` option).
|
498
507
|
#
|
499
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
508
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#133
|
500
509
|
def backtrace_formatter=(_arg0); end
|
501
510
|
|
502
511
|
# Indicates whether or not diffs should be colored.
|
@@ -510,7 +519,7 @@ class RSpec::Expectations::Configuration
|
|
510
519
|
|
511
520
|
# @private
|
512
521
|
#
|
513
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
522
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#230
|
514
523
|
def false_positives_handler; end
|
515
524
|
|
516
525
|
# Sets if custom matcher descriptions and failure messages
|
@@ -518,7 +527,7 @@ class RSpec::Expectations::Configuration
|
|
518
527
|
#
|
519
528
|
# @param value [Boolean]
|
520
529
|
#
|
521
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
530
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#145
|
522
531
|
def include_chain_clauses_in_custom_matcher_descriptions=(_arg0); end
|
523
532
|
|
524
533
|
# Indicates whether or not custom matcher descriptions and failure messages
|
@@ -527,7 +536,7 @@ class RSpec::Expectations::Configuration
|
|
527
536
|
#
|
528
537
|
# @return [Boolean]
|
529
538
|
#
|
530
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
539
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#150
|
531
540
|
def include_chain_clauses_in_custom_matcher_descriptions?; end
|
532
541
|
|
533
542
|
# Configures the maximum character length that RSpec will print while
|
@@ -545,43 +554,43 @@ class RSpec::Expectations::Configuration
|
|
545
554
|
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#70
|
546
555
|
def max_formatted_output_length=(length); end
|
547
556
|
|
548
|
-
#
|
549
|
-
#
|
550
|
-
#
|
557
|
+
# Configures what RSpec will do about matcher use which would potentially cause
|
558
|
+
# false positives in tests. Defaults to `:warn` since this is generally the desired behavior,
|
559
|
+
# but can also be set to `:raise` or `:nothing`.
|
560
|
+
#
|
561
|
+
# @overload on_potential_false_positives
|
562
|
+
# @overload on_potential_false_positives=
|
551
563
|
#
|
552
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
564
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#192
|
553
565
|
def on_potential_false_positives; end
|
554
566
|
|
555
|
-
#
|
556
|
-
# potentially cause false positives in tests.
|
557
|
-
#
|
558
|
-
# @param behavior [Symbol] can be set to :warn, :raise or :nothing
|
559
|
-
#
|
560
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#182
|
567
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#194
|
561
568
|
def on_potential_false_positives=(behavior); end
|
562
569
|
|
563
570
|
# @private
|
564
571
|
#
|
565
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
572
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#155
|
566
573
|
def reset_syntaxes_to_default; end
|
567
574
|
|
568
|
-
# Returns the value of attribute strict_predicate_matchers.
|
569
|
-
#
|
570
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#197
|
571
|
-
def strict_predicate_matchers; end
|
572
|
-
|
573
575
|
# Configures RSpec to check predicate matchers to `be(true)` / `be(false)` (strict),
|
574
576
|
# or `be_truthy` / `be_falsey` (not strict).
|
575
577
|
# Historically, the default was `false`, but `true` is recommended.
|
576
578
|
#
|
579
|
+
# @overload strict_predicate_matchers
|
580
|
+
# @overload strict_predicate_matchers?
|
581
|
+
# @overload strict_predicate_matchers=
|
582
|
+
#
|
583
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#211
|
584
|
+
def strict_predicate_matchers; end
|
585
|
+
|
577
586
|
# @raise [ArgumentError]
|
578
587
|
#
|
579
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
580
|
-
def strict_predicate_matchers=(
|
588
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#213
|
589
|
+
def strict_predicate_matchers=(value); end
|
581
590
|
|
582
591
|
# @return [Boolean]
|
583
592
|
#
|
584
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
593
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#218
|
585
594
|
def strict_predicate_matchers?; end
|
586
595
|
|
587
596
|
# The list of configured syntaxes.
|
@@ -617,7 +626,7 @@ class RSpec::Expectations::Configuration
|
|
617
626
|
#
|
618
627
|
# @param boolean [Boolean]
|
619
628
|
#
|
620
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
629
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#173
|
621
630
|
def warn_about_potential_false_positives=(boolean); end
|
622
631
|
|
623
632
|
# Indicates whether RSpec will warn about matcher use which will
|
@@ -626,7 +635,7 @@ class RSpec::Expectations::Configuration
|
|
626
635
|
#
|
627
636
|
# @return [Boolean]
|
628
637
|
#
|
629
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
638
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#225
|
630
639
|
def warn_about_potential_false_positives?; end
|
631
640
|
end
|
632
641
|
|
@@ -640,10 +649,10 @@ RSpec::Expectations::Configuration::FALSE_POSITIVE_BEHAVIOURS = T.let(T.unsafe(n
|
|
640
649
|
#
|
641
650
|
# @api private
|
642
651
|
#
|
643
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
652
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#163
|
644
653
|
module RSpec::Expectations::Configuration::NullBacktraceFormatter
|
645
654
|
class << self
|
646
|
-
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#
|
655
|
+
# source://rspec-expectations//lib/rspec/expectations/configuration.rb#164
|
647
656
|
def format_backtrace(backtrace); end
|
648
657
|
end
|
649
658
|
end
|
@@ -656,7 +665,7 @@ module RSpec::Expectations::ExpectationHelper
|
|
656
665
|
# source://rspec-expectations//lib/rspec/expectations/handler.rb#5
|
657
666
|
def check_message(msg); end
|
658
667
|
|
659
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
668
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#32
|
660
669
|
def handle_failure(matcher, message, failure_message_method); end
|
661
670
|
|
662
671
|
# Returns an RSpec-3+ compatible matcher, wrapping a legacy one
|
@@ -664,10 +673,10 @@ module RSpec::Expectations::ExpectationHelper
|
|
664
673
|
#
|
665
674
|
# @private
|
666
675
|
#
|
667
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
676
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#18
|
668
677
|
def modern_matcher_from(matcher); end
|
669
678
|
|
670
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
679
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#23
|
671
680
|
def with_matcher(handler, matcher, message); end
|
672
681
|
end
|
673
682
|
end
|
@@ -735,7 +744,7 @@ module RSpec::Expectations::ExpectationTarget::InstanceMethods
|
|
735
744
|
# @example
|
736
745
|
# expect(value).not_to eq(5)
|
737
746
|
# @param matcher [Matcher]
|
738
|
-
# @param message [String
|
747
|
+
# @param message [String, Proc] optional message to display when the expectation fails
|
739
748
|
# @return [Boolean] false if the negative expectation succeeds (else raises)
|
740
749
|
# @see RSpec::Matchers
|
741
750
|
#
|
@@ -748,7 +757,7 @@ module RSpec::Expectations::ExpectationTarget::InstanceMethods
|
|
748
757
|
# expect(value).to eq(5)
|
749
758
|
# expect { perform }.to raise_error
|
750
759
|
# @param matcher [Matcher]
|
751
|
-
# @param message [String
|
760
|
+
# @param message [String, Proc] optional message to display when the expectation fails
|
752
761
|
# @return [Boolean] true if the expectation succeeds (else raises)
|
753
762
|
# @see RSpec::Matchers
|
754
763
|
#
|
@@ -760,7 +769,7 @@ module RSpec::Expectations::ExpectationTarget::InstanceMethods
|
|
760
769
|
# @example
|
761
770
|
# expect(value).not_to eq(5)
|
762
771
|
# @param matcher [Matcher]
|
763
|
-
# @param message [String
|
772
|
+
# @param message [String, Proc] optional message to display when the expectation fails
|
764
773
|
# @return [Boolean] false if the negative expectation succeeds (else raises)
|
765
774
|
# @see RSpec::Matchers
|
766
775
|
#
|
@@ -790,10 +799,10 @@ module RSpec::Expectations::ExpectationTarget::UndefinedValue; end
|
|
790
799
|
class RSpec::Expectations::FailureAggregator
|
791
800
|
# @return [FailureAggregator] a new instance of FailureAggregator
|
792
801
|
#
|
793
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
802
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#97
|
794
803
|
def initialize(block_label, metadata); end
|
795
804
|
|
796
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
805
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#27
|
797
806
|
def aggregate; end
|
798
807
|
|
799
808
|
# Returns the value of attribute block_label.
|
@@ -804,10 +813,10 @@ class RSpec::Expectations::FailureAggregator
|
|
804
813
|
# This method is defined to satisfy the callable interface
|
805
814
|
# expected by `RSpec::Support.with_failure_notifier`.
|
806
815
|
#
|
807
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
816
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#64
|
808
817
|
def call(failure, options); end
|
809
818
|
|
810
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
819
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#54
|
811
820
|
def failures; end
|
812
821
|
|
813
822
|
# Returns the value of attribute metadata.
|
@@ -815,27 +824,47 @@ class RSpec::Expectations::FailureAggregator
|
|
815
824
|
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#5
|
816
825
|
def metadata; end
|
817
826
|
|
818
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
827
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#58
|
819
828
|
def other_errors; end
|
820
829
|
|
821
830
|
private
|
822
831
|
|
823
832
|
# Using `caller` performs better (and is simpler) than `raise` on most Rubies.
|
824
833
|
#
|
825
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
834
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#92
|
826
835
|
def assign_backtrace(failure); end
|
827
836
|
|
828
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
837
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#103
|
829
838
|
def notify_aggregated_failures; end
|
830
839
|
end
|
831
840
|
|
841
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#25
|
842
|
+
RSpec::Expectations::FailureAggregator::AGGREGATED_FAILURE = T.let(T.unsafe(nil), RSpec::Expectations::FailureAggregator::AggregatedFailure)
|
843
|
+
|
844
|
+
# @private
|
845
|
+
#
|
846
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#8
|
847
|
+
class RSpec::Expectations::FailureAggregator::AggregatedFailure
|
848
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#19
|
849
|
+
def inspect; end
|
850
|
+
end
|
851
|
+
|
852
|
+
# :nocov:
|
853
|
+
# `inspect` was apparently used by some versions early in ruby 3 while constructing
|
854
|
+
# NoMethodError, but seems to be no longer.
|
855
|
+
#
|
856
|
+
# @private
|
857
|
+
#
|
858
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#14
|
859
|
+
RSpec::Expectations::FailureAggregator::AggregatedFailure::MESSAGE = T.let(T.unsafe(nil), String)
|
860
|
+
|
832
861
|
# RSpec 3.0 was released with the class name misspelled. For SemVer compatibility,
|
833
862
|
# we will provide this misspelled alias until 4.0.
|
834
863
|
#
|
835
864
|
# @deprecated Use LegacyMatcherAdapter instead.
|
836
865
|
# @private
|
837
866
|
#
|
838
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
867
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#179
|
839
868
|
RSpec::Expectations::LegacyMacherAdapter = RSpec::Expectations::LegacyMatcherAdapter
|
840
869
|
|
841
870
|
# Wraps a matcher written against one of the legacy protocols in
|
@@ -843,15 +872,15 @@ RSpec::Expectations::LegacyMacherAdapter = RSpec::Expectations::LegacyMatcherAda
|
|
843
872
|
#
|
844
873
|
# @private
|
845
874
|
#
|
846
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
875
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#112
|
847
876
|
class RSpec::Expectations::LegacyMatcherAdapter < ::RSpec::Matchers::MatcherDelegator
|
848
877
|
# @return [LegacyMatcherAdapter] a new instance of LegacyMatcherAdapter
|
849
878
|
#
|
850
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
879
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#113
|
851
880
|
def initialize(matcher); end
|
852
881
|
|
853
882
|
class << self
|
854
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
883
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#123
|
855
884
|
def wrap(matcher); end
|
856
885
|
end
|
857
886
|
end
|
@@ -862,12 +891,12 @@ end
|
|
862
891
|
#
|
863
892
|
# @private
|
864
893
|
#
|
865
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
894
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#156
|
866
895
|
class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < ::RSpec::Expectations::LegacyMatcherAdapter
|
867
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
896
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#157
|
868
897
|
def failure_message; end
|
869
898
|
|
870
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
899
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#161
|
871
900
|
def failure_message_when_negated; end
|
872
901
|
|
873
902
|
class << self
|
@@ -877,7 +906,7 @@ class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < ::RSpec::Expectations:
|
|
877
906
|
#
|
878
907
|
# @return [Boolean]
|
879
908
|
#
|
880
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
909
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#168
|
881
910
|
def interface_matches?(matcher); end
|
882
911
|
end
|
883
912
|
end
|
@@ -889,18 +918,18 @@ end
|
|
889
918
|
#
|
890
919
|
# @private
|
891
920
|
#
|
892
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
921
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#132
|
893
922
|
class RSpec::Expectations::LegacyMatcherAdapter::RSpec2 < ::RSpec::Expectations::LegacyMatcherAdapter
|
894
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
923
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#133
|
895
924
|
def failure_message; end
|
896
925
|
|
897
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
926
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#137
|
898
927
|
def failure_message_when_negated; end
|
899
928
|
|
900
929
|
class << self
|
901
930
|
# @return [Boolean]
|
902
931
|
#
|
903
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
932
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#141
|
904
933
|
def interface_matches?(matcher); end
|
905
934
|
end
|
906
935
|
end
|
@@ -916,130 +945,130 @@ end
|
|
916
945
|
class RSpec::Expectations::MultipleExpectationsNotMetError < ::RSpec::Expectations::ExpectationNotMetError
|
917
946
|
# @return [MultipleExpectationsNotMetError] a new instance of MultipleExpectationsNotMetError
|
918
947
|
#
|
919
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
948
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#160
|
920
949
|
def initialize(failure_aggregator); end
|
921
950
|
|
922
951
|
# @return [String] The user-assigned label for the aggregation block.
|
923
952
|
#
|
924
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
953
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#135
|
925
954
|
def aggregation_block_label; end
|
926
955
|
|
927
956
|
# @return [Hash] The metadata hash passed to `aggregate_failures`.
|
928
957
|
#
|
929
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
958
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#140
|
930
959
|
def aggregation_metadata; end
|
931
960
|
|
932
961
|
# @return [Array<Exception>] The list of expectation failures and other exceptions, combined.
|
933
962
|
#
|
934
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
963
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#132
|
935
964
|
def all_exceptions; end
|
936
965
|
|
937
966
|
# return [String] A description of the failure/error counts.
|
938
967
|
#
|
939
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
968
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#151
|
940
969
|
def exception_count_description; end
|
941
970
|
|
942
971
|
# @return [Array<RSpec::Expectations::ExpectationNotMetError>] The list of expectation failures.
|
943
972
|
#
|
944
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
973
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#122
|
945
974
|
def failures; end
|
946
975
|
|
947
976
|
# @return [String] The fully formatted exception message.
|
948
977
|
#
|
949
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
978
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#117
|
950
979
|
def message; end
|
951
980
|
|
952
981
|
# @return [Array<Exception>] The list of other exceptions.
|
953
982
|
#
|
954
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
983
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#127
|
955
984
|
def other_errors; end
|
956
985
|
|
957
986
|
# @return [String] A summary of the failure, including the block label and a count of failures.
|
958
987
|
#
|
959
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
988
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#145
|
960
989
|
def summary; end
|
961
990
|
|
962
991
|
private
|
963
992
|
|
964
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
993
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#192
|
965
994
|
def backtrace_line(line); end
|
966
995
|
|
967
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
996
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#165
|
968
997
|
def block_description; end
|
969
998
|
|
970
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
999
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#174
|
971
1000
|
def enumerated(exceptions, index_offset); end
|
972
1001
|
|
973
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1002
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#204
|
974
1003
|
def enumerated_errors; end
|
975
1004
|
|
976
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1005
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#200
|
977
1006
|
def enumerated_failures; end
|
978
1007
|
|
979
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1008
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#182
|
980
1009
|
def exclusion_patterns; end
|
981
1010
|
|
982
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1011
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#188
|
983
1012
|
def format_backtrace(backtrace); end
|
984
1013
|
|
985
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1014
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#219
|
986
1015
|
def indentation; end
|
987
1016
|
|
988
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1017
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#210
|
989
1018
|
def indented(failure_message, index); end
|
990
1019
|
|
991
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1020
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#231
|
992
1021
|
def index_label(index); end
|
993
1022
|
|
994
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1023
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#223
|
995
1024
|
def longest_index_label_width; end
|
996
1025
|
|
997
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1026
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#170
|
998
1027
|
def pluralize(noun, count); end
|
999
1028
|
|
1000
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1029
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#227
|
1001
1030
|
def width_of_label(index); end
|
1002
1031
|
end
|
1003
1032
|
|
1004
1033
|
# @private
|
1005
1034
|
#
|
1006
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1035
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#73
|
1007
1036
|
class RSpec::Expectations::NegativeExpectationHandler
|
1008
1037
|
class << self
|
1009
1038
|
# @return [Boolean]
|
1010
1039
|
#
|
1011
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1040
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#87
|
1012
1041
|
def does_not_match?(matcher, actual, &block); end
|
1013
1042
|
|
1014
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1043
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#74
|
1015
1044
|
def handle_matcher(actual, initial_matcher, custom_message = T.unsafe(nil), &block); end
|
1016
1045
|
|
1017
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1046
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#103
|
1018
1047
|
def opposite_should_method; end
|
1019
1048
|
|
1020
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1049
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#99
|
1021
1050
|
def should_method; end
|
1022
1051
|
|
1023
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1052
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#95
|
1024
1053
|
def verb; end
|
1025
1054
|
end
|
1026
1055
|
end
|
1027
1056
|
|
1028
1057
|
# @private
|
1029
1058
|
#
|
1030
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1059
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#45
|
1031
1060
|
class RSpec::Expectations::PositiveExpectationHandler
|
1032
1061
|
class << self
|
1033
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1062
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#46
|
1034
1063
|
def handle_matcher(actual, initial_matcher, custom_message = T.unsafe(nil), &block); end
|
1035
1064
|
|
1036
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1065
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#67
|
1037
1066
|
def opposite_should_method; end
|
1038
1067
|
|
1039
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1068
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#63
|
1040
1069
|
def should_method; end
|
1041
1070
|
|
1042
|
-
# source://rspec-expectations//lib/rspec/expectations/handler.rb#
|
1071
|
+
# source://rspec-expectations//lib/rspec/expectations/handler.rb#59
|
1043
1072
|
def verb; end
|
1044
1073
|
end
|
1045
1074
|
end
|
@@ -1188,6 +1217,32 @@ module RSpec::Expectations::Syntax
|
|
1188
1217
|
end
|
1189
1218
|
end
|
1190
1219
|
|
1220
|
+
# Validates the provided matcher to ensure it supports block
|
1221
|
+
# expectations, in order to avoid user confusion when they
|
1222
|
+
# use a block thinking the expectation will be on the return
|
1223
|
+
# value of the block rather than the block itself.
|
1224
|
+
#
|
1225
|
+
# @private
|
1226
|
+
#
|
1227
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#98
|
1228
|
+
class RSpec::Expectations::ValueExpectationTarget < ::RSpec::Expectations::ExpectationTarget
|
1229
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#104
|
1230
|
+
def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
1231
|
+
|
1232
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#99
|
1233
|
+
def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
1234
|
+
|
1235
|
+
private
|
1236
|
+
|
1237
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#111
|
1238
|
+
def enforce_value_expectation(matcher); end
|
1239
|
+
|
1240
|
+
# @return [Boolean]
|
1241
|
+
#
|
1242
|
+
# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#126
|
1243
|
+
def supports_value_expectations?(matcher); end
|
1244
|
+
end
|
1245
|
+
|
1191
1246
|
# @private
|
1192
1247
|
#
|
1193
1248
|
# source://rspec-expectations//lib/rspec/expectations/version.rb#4
|
@@ -1216,7 +1271,7 @@ RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String)
|
|
1216
1271
|
# expect([]).to be_empty # => [].empty?() | passes
|
1217
1272
|
# expect([]).not_to be_empty # => [].empty?() | fails
|
1218
1273
|
#
|
1219
|
-
# In
|
1274
|
+
# In addition to prefixing the predicate matchers with "be_", you can also use "be_a_"
|
1220
1275
|
# and "be_an_", making your specs read much more naturally:
|
1221
1276
|
#
|
1222
1277
|
# expect("a string").to be_an_instance_of(String) # =>"a string".instance_of?(String) # passes
|
@@ -1504,7 +1559,7 @@ module RSpec::Matchers
|
|
1504
1559
|
# @param message [Symbol] the message to send the receiver
|
1505
1560
|
#
|
1506
1561
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1507
|
-
def a_block_changing(*args, &block); end
|
1562
|
+
def a_block_changing(*args, **_arg1, &block); end
|
1508
1563
|
|
1509
1564
|
# With no arg, passes if the block outputs `to_stdout` or `to_stderr`.
|
1510
1565
|
# With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`.
|
@@ -1537,12 +1592,12 @@ module RSpec::Matchers
|
|
1537
1592
|
# are thus significantly (~30x) slower than `to_stdout` and `to_stderr`.
|
1538
1593
|
#
|
1539
1594
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1540
|
-
def a_block_outputting(*args, &block); end
|
1595
|
+
def a_block_outputting(*args, **_arg1, &block); end
|
1541
1596
|
|
1542
1597
|
# With no args, matches if any error is raised.
|
1543
1598
|
# With a named error, matches only if that specific error is raised.
|
1544
|
-
# With a named error and
|
1545
|
-
# With a named error and
|
1599
|
+
# With a named error and message specified as a String, matches only if both match.
|
1600
|
+
# With a named error and message specified as a Regexp, matches only if both match.
|
1546
1601
|
# Pass an optional block to perform extra verifications on the exception matched
|
1547
1602
|
#
|
1548
1603
|
# @example
|
@@ -1557,7 +1612,7 @@ module RSpec::Matchers
|
|
1557
1612
|
# expect { do_something_risky }.not_to raise_error
|
1558
1613
|
#
|
1559
1614
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1560
|
-
def a_block_raising(*args, &block); end
|
1615
|
+
def a_block_raising(*args, **_arg1, &block); end
|
1561
1616
|
|
1562
1617
|
# Given no argument, matches if a proc throws any Symbol.
|
1563
1618
|
#
|
@@ -1576,7 +1631,7 @@ module RSpec::Matchers
|
|
1576
1631
|
# expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit')
|
1577
1632
|
#
|
1578
1633
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1579
|
-
def a_block_throwing(*args, &block); end
|
1634
|
+
def a_block_throwing(*args, **_arg1, &block); end
|
1580
1635
|
|
1581
1636
|
# Passes if the method called in the expect block yields, regardless
|
1582
1637
|
# of whether or not arguments are yielded.
|
@@ -1588,7 +1643,7 @@ module RSpec::Matchers
|
|
1588
1643
|
# the method-under-test as a block.
|
1589
1644
|
#
|
1590
1645
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1591
|
-
def a_block_yielding_control(*args, &block); end
|
1646
|
+
def a_block_yielding_control(*args, **_arg1, &block); end
|
1592
1647
|
|
1593
1648
|
# Designed for use with methods that repeatedly yield (such as
|
1594
1649
|
# iterators). Passes if the method called in the expect block yields
|
@@ -1606,7 +1661,7 @@ module RSpec::Matchers
|
|
1606
1661
|
# the method-under-test as a block.
|
1607
1662
|
#
|
1608
1663
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1609
|
-
def a_block_yielding_successive_args(*args, &block); end
|
1664
|
+
def a_block_yielding_successive_args(*args, **_arg1, &block); end
|
1610
1665
|
|
1611
1666
|
# Given no arguments, matches if the method called in the expect
|
1612
1667
|
# block yields with arguments (regardless of what they are or how
|
@@ -1633,7 +1688,7 @@ module RSpec::Matchers
|
|
1633
1688
|
# multiple times.
|
1634
1689
|
#
|
1635
1690
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1636
|
-
def a_block_yielding_with_args(*args, &block); end
|
1691
|
+
def a_block_yielding_with_args(*args, **_arg1, &block); end
|
1637
1692
|
|
1638
1693
|
# Passes if the method called in the expect block yields with
|
1639
1694
|
# no arguments. Fails if it does not yield, or yields with arguments.
|
@@ -1648,7 +1703,7 @@ module RSpec::Matchers
|
|
1648
1703
|
# multiple times.
|
1649
1704
|
#
|
1650
1705
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1651
|
-
def a_block_yielding_with_no_args(*args, &block); end
|
1706
|
+
def a_block_yielding_with_no_args(*args, **_arg1, &block); end
|
1652
1707
|
|
1653
1708
|
# Passes if actual contains all of the expected regardless of order.
|
1654
1709
|
# This works for collections. Pass in multiple args and it will only
|
@@ -1662,7 +1717,7 @@ module RSpec::Matchers
|
|
1662
1717
|
# @see #match_array
|
1663
1718
|
#
|
1664
1719
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1665
|
-
def a_collection_containing_exactly(*args, &block); end
|
1720
|
+
def a_collection_containing_exactly(*args, **_arg1, &block); end
|
1666
1721
|
|
1667
1722
|
# Matches if the actual value ends with the expected value(s). In the case
|
1668
1723
|
# of a string, matches against the last `expected.length` characters of the
|
@@ -1675,7 +1730,7 @@ module RSpec::Matchers
|
|
1675
1730
|
# expect([0, 2, 3, 4, 4]).to end_with 3, 4
|
1676
1731
|
#
|
1677
1732
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1678
|
-
def a_collection_ending_with(*args, &block); end
|
1733
|
+
def a_collection_ending_with(*args, **_arg1, &block); end
|
1679
1734
|
|
1680
1735
|
# Passes if actual includes expected. This works for
|
1681
1736
|
# collections and Strings. You can also pass in multiple args
|
@@ -1696,7 +1751,7 @@ module RSpec::Matchers
|
|
1696
1751
|
# expect(:a => 1, :b => 2).not_to include(:a => 2)
|
1697
1752
|
#
|
1698
1753
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1699
|
-
def a_collection_including(*args, &block); end
|
1754
|
+
def a_collection_including(*args, **_arg1, &block); end
|
1700
1755
|
|
1701
1756
|
# Matches if the actual value starts with the expected value(s). In the
|
1702
1757
|
# case of a string, matches against the first `expected.length` characters
|
@@ -1709,17 +1764,17 @@ module RSpec::Matchers
|
|
1709
1764
|
# expect([0, 2, 3, 4, 4]).to start_with 0, 1
|
1710
1765
|
#
|
1711
1766
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1712
|
-
def a_collection_starting_with(*args, &block); end
|
1767
|
+
def a_collection_starting_with(*args, **_arg1, &block); end
|
1713
1768
|
|
1714
1769
|
# Passes if actual is falsey (false or nil)
|
1715
1770
|
#
|
1716
1771
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1717
|
-
def a_falsey_value(*args, &block); end
|
1772
|
+
def a_falsey_value(*args, **_arg1, &block); end
|
1718
1773
|
|
1719
1774
|
# Passes if actual is falsey (false or nil)
|
1720
1775
|
#
|
1721
1776
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1722
|
-
def a_falsy_value(*args, &block); end
|
1777
|
+
def a_falsy_value(*args, **_arg1, &block); end
|
1723
1778
|
|
1724
1779
|
# Passes if actual includes expected. This works for
|
1725
1780
|
# collections and Strings. You can also pass in multiple args
|
@@ -1740,7 +1795,7 @@ module RSpec::Matchers
|
|
1740
1795
|
# expect(:a => 1, :b => 2).not_to include(:a => 2)
|
1741
1796
|
#
|
1742
1797
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1743
|
-
def a_hash_including(*args, &block); end
|
1798
|
+
def a_hash_including(*args, **_arg1, &block); end
|
1744
1799
|
|
1745
1800
|
# Passes if actual.kind_of?(expected)
|
1746
1801
|
#
|
@@ -1750,12 +1805,12 @@ module RSpec::Matchers
|
|
1750
1805
|
# expect(5).not_to be_a_kind_of(Float)
|
1751
1806
|
#
|
1752
1807
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1753
|
-
def a_kind_of(*args, &block); end
|
1808
|
+
def a_kind_of(*args, **_arg1, &block); end
|
1754
1809
|
|
1755
1810
|
# Passes if actual is nil
|
1756
1811
|
#
|
1757
1812
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1758
|
-
def a_nil_value(*args, &block); end
|
1813
|
+
def a_nil_value(*args, **_arg1, &block); end
|
1759
1814
|
|
1760
1815
|
# Passes if actual covers expected. This works for
|
1761
1816
|
# Ranges. You can also pass in multiple args
|
@@ -1771,7 +1826,7 @@ module RSpec::Matchers
|
|
1771
1826
|
# expect(1..10).not_to cover(5) # fails
|
1772
1827
|
#
|
1773
1828
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1774
|
-
def a_range_covering(*args, &block); end
|
1829
|
+
def a_range_covering(*args, **_arg1, &block); end
|
1775
1830
|
|
1776
1831
|
# Matches if the actual value ends with the expected value(s). In the case
|
1777
1832
|
# of a string, matches against the last `expected.length` characters of the
|
@@ -1784,7 +1839,7 @@ module RSpec::Matchers
|
|
1784
1839
|
# expect([0, 2, 3, 4, 4]).to end_with 3, 4
|
1785
1840
|
#
|
1786
1841
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1787
|
-
def a_string_ending_with(*args, &block); end
|
1842
|
+
def a_string_ending_with(*args, **_arg1, &block); end
|
1788
1843
|
|
1789
1844
|
# Passes if actual includes expected. This works for
|
1790
1845
|
# collections and Strings. You can also pass in multiple args
|
@@ -1805,7 +1860,7 @@ module RSpec::Matchers
|
|
1805
1860
|
# expect(:a => 1, :b => 2).not_to include(:a => 2)
|
1806
1861
|
#
|
1807
1862
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1808
|
-
def a_string_including(*args, &block); end
|
1863
|
+
def a_string_including(*args, **_arg1, &block); end
|
1809
1864
|
|
1810
1865
|
# Given a `Regexp` or `String`, passes if `actual.match(pattern)`
|
1811
1866
|
# Given an arbitrary nested data structure (e.g. arrays and hashes),
|
@@ -1838,7 +1893,7 @@ module RSpec::Matchers
|
|
1838
1893
|
# `match` could not be used there), but is no longer needed in 3.x.
|
1839
1894
|
#
|
1840
1895
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1841
|
-
def a_string_matching(*args, &block); end
|
1896
|
+
def a_string_matching(*args, **_arg1, &block); end
|
1842
1897
|
|
1843
1898
|
# Matches if the actual value starts with the expected value(s). In the
|
1844
1899
|
# case of a string, matches against the first `expected.length` characters
|
@@ -1851,12 +1906,12 @@ module RSpec::Matchers
|
|
1851
1906
|
# expect([0, 2, 3, 4, 4]).to start_with 0, 1
|
1852
1907
|
#
|
1853
1908
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1854
|
-
def a_string_starting_with(*args, &block); end
|
1909
|
+
def a_string_starting_with(*args, **_arg1, &block); end
|
1855
1910
|
|
1856
1911
|
# Passes if actual is truthy (anything but false or nil)
|
1857
1912
|
#
|
1858
1913
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1859
|
-
def a_truthy_value(*args, &block); end
|
1914
|
+
def a_truthy_value(*args, **_arg1, &block); end
|
1860
1915
|
|
1861
1916
|
# Given true, false, or nil, will pass if actual value is true, false or
|
1862
1917
|
# nil (respectively). Given no args means the caller should satisfy an if
|
@@ -1880,7 +1935,7 @@ module RSpec::Matchers
|
|
1880
1935
|
# expect(actual).not_to be_[arbitrary_predicate](*args)
|
1881
1936
|
#
|
1882
1937
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1883
|
-
def a_value(*args, &block); end
|
1938
|
+
def a_value(*args, **_arg1, &block); end
|
1884
1939
|
|
1885
1940
|
# Passes if actual.between?(min, max). Works with any Comparable object,
|
1886
1941
|
# including String, Symbol, Time, or Numeric (Fixnum, Bignum, Integer,
|
@@ -1895,7 +1950,7 @@ module RSpec::Matchers
|
|
1895
1950
|
# expect(10).not_to be_between(1, 10).exclusive
|
1896
1951
|
#
|
1897
1952
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1898
|
-
def a_value_between(*args, &block); end
|
1953
|
+
def a_value_between(*args, **_arg1, &block); end
|
1899
1954
|
|
1900
1955
|
# Passes if actual == expected +/- delta
|
1901
1956
|
#
|
@@ -1904,7 +1959,7 @@ module RSpec::Matchers
|
|
1904
1959
|
# expect(result).not_to be_within(0.5).of(3.0)
|
1905
1960
|
#
|
1906
1961
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1907
|
-
def a_value_within(*args, &block); end
|
1962
|
+
def a_value_within(*args, **_arg1, &block); end
|
1908
1963
|
|
1909
1964
|
# Allows multiple expectations in the provided block to fail, and then
|
1910
1965
|
# aggregates them into a single exception, rather than aborting on the
|
@@ -1956,6 +2011,19 @@ module RSpec::Matchers
|
|
1956
2011
|
# source://rspec-expectations//lib/rspec/matchers.rb#662
|
1957
2012
|
def all(expected); end
|
1958
2013
|
|
2014
|
+
# An alternate form of `contain_exactly` that accepts
|
2015
|
+
# the expected contents as a single array arg rather
|
2016
|
+
# than splatted out as individual items.
|
2017
|
+
#
|
2018
|
+
# @example
|
2019
|
+
# expect(results).to contain_exactly(1, 2)
|
2020
|
+
# # is identical to:
|
2021
|
+
# expect(results).to match_array([1, 2])
|
2022
|
+
# @see #contain_exactly
|
2023
|
+
#
|
2024
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2025
|
+
def an_array_matching(*args, **_arg1, &block); end
|
2026
|
+
|
1959
2027
|
# Passes if actual.instance_of?(expected)
|
1960
2028
|
#
|
1961
2029
|
# @example
|
@@ -1964,7 +2032,7 @@ module RSpec::Matchers
|
|
1964
2032
|
# expect(5).not_to be_an_instance_of(Float)
|
1965
2033
|
#
|
1966
2034
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1967
|
-
def an_instance_of(*args, &block); end
|
2035
|
+
def an_instance_of(*args, **_arg1, &block); end
|
1968
2036
|
|
1969
2037
|
# Passes if <tt>actual == expected</tt>.
|
1970
2038
|
#
|
@@ -1976,7 +2044,7 @@ module RSpec::Matchers
|
|
1976
2044
|
# expect(5).not_to eq(3)
|
1977
2045
|
#
|
1978
2046
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1979
|
-
def an_object_eq_to(*args, &block); end
|
2047
|
+
def an_object_eq_to(*args, **_arg1, &block); end
|
1980
2048
|
|
1981
2049
|
# Passes if `actual.eql?(expected)`
|
1982
2050
|
#
|
@@ -1988,7 +2056,7 @@ module RSpec::Matchers
|
|
1988
2056
|
# expect(5).not_to eql(3)
|
1989
2057
|
#
|
1990
2058
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1991
|
-
def an_object_eql_to(*args, &block); end
|
2059
|
+
def an_object_eql_to(*args, **_arg1, &block); end
|
1992
2060
|
|
1993
2061
|
# Passes if <tt>actual.equal?(expected)</tt> (object identity).
|
1994
2062
|
#
|
@@ -2000,7 +2068,7 @@ module RSpec::Matchers
|
|
2000
2068
|
# expect("5").not_to equal("5") # Strings that look the same are not the same object
|
2001
2069
|
#
|
2002
2070
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2003
|
-
def an_object_equal_to(*args, &block); end
|
2071
|
+
def an_object_equal_to(*args, **_arg1, &block); end
|
2004
2072
|
|
2005
2073
|
# Passes if `actual.exist?` or `actual.exists?`
|
2006
2074
|
#
|
@@ -2008,7 +2076,7 @@ module RSpec::Matchers
|
|
2008
2076
|
# expect(File).to exist("path/to/file")
|
2009
2077
|
#
|
2010
2078
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2011
|
-
def an_object_existing(*args, &block); end
|
2079
|
+
def an_object_existing(*args, **_arg1, &block); end
|
2012
2080
|
|
2013
2081
|
# Passes if actual's attribute values match the expected attributes hash.
|
2014
2082
|
# This works no matter how you define your attribute readers.
|
@@ -2024,7 +2092,7 @@ module RSpec::Matchers
|
|
2024
2092
|
# @note It will fail if actual doesn't respond to any of the expected attributes.
|
2025
2093
|
#
|
2026
2094
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2027
|
-
def an_object_having_attributes(*args, &block); end
|
2095
|
+
def an_object_having_attributes(*args, **_arg1, &block); end
|
2028
2096
|
|
2029
2097
|
# Given a `Regexp` or `String`, passes if `actual.match(pattern)`
|
2030
2098
|
# Given an arbitrary nested data structure (e.g. arrays and hashes),
|
@@ -2057,7 +2125,7 @@ module RSpec::Matchers
|
|
2057
2125
|
# `match` could not be used there), but is no longer needed in 3.x.
|
2058
2126
|
#
|
2059
2127
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2060
|
-
def an_object_matching(*args, &block); end
|
2128
|
+
def an_object_matching(*args, **_arg1, &block); end
|
2061
2129
|
|
2062
2130
|
# Matches if the target object responds to all of the names
|
2063
2131
|
# provided. Names can be Strings or Symbols.
|
@@ -2066,7 +2134,7 @@ module RSpec::Matchers
|
|
2066
2134
|
# expect("string").to respond_to(:length)
|
2067
2135
|
#
|
2068
2136
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2069
|
-
def an_object_responding_to(*args, &block); end
|
2137
|
+
def an_object_responding_to(*args, **_arg1, &block); end
|
2070
2138
|
|
2071
2139
|
# Passes if the submitted block returns true. Yields target to the
|
2072
2140
|
# block.
|
@@ -2084,7 +2152,7 @@ module RSpec::Matchers
|
|
2084
2152
|
# @param description [String] optional description to be used for this matcher.
|
2085
2153
|
#
|
2086
2154
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2087
|
-
def an_object_satisfying(*args, &block); end
|
2155
|
+
def an_object_satisfying(*args, **_arg1, &block); end
|
2088
2156
|
|
2089
2157
|
# Given true, false, or nil, will pass if actual value is true, false or
|
2090
2158
|
# nil (respectively). Given no args means the caller should satisfy an if
|
@@ -2163,7 +2231,7 @@ module RSpec::Matchers
|
|
2163
2231
|
# Passes if actual is falsey (false or nil)
|
2164
2232
|
#
|
2165
2233
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2166
|
-
def be_falsy(*args, &block); end
|
2234
|
+
def be_falsy(*args, **_arg1, &block); end
|
2167
2235
|
|
2168
2236
|
# Passes if actual.instance_of?(expected)
|
2169
2237
|
#
|
@@ -2370,7 +2438,7 @@ module RSpec::Matchers
|
|
2370
2438
|
# @param message [Symbol] the message to send the receiver
|
2371
2439
|
#
|
2372
2440
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2373
|
-
def changing(*args, &block); end
|
2441
|
+
def changing(*args, **_arg1, &block); end
|
2374
2442
|
|
2375
2443
|
# Passes if actual contains all of the expected regardless of order.
|
2376
2444
|
# This works for collections. Pass in multiple args and it will only
|
@@ -2398,7 +2466,7 @@ module RSpec::Matchers
|
|
2398
2466
|
# @see #match_array
|
2399
2467
|
#
|
2400
2468
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2401
|
-
def containing_exactly(*args, &block); end
|
2469
|
+
def containing_exactly(*args, **_arg1, &block); end
|
2402
2470
|
|
2403
2471
|
# Passes if actual covers expected. This works for
|
2404
2472
|
# Ranges. You can also pass in multiple args
|
@@ -2430,7 +2498,7 @@ module RSpec::Matchers
|
|
2430
2498
|
# expect(1..10).not_to cover(5) # fails
|
2431
2499
|
#
|
2432
2500
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2433
|
-
def covering(*args, &block); end
|
2501
|
+
def covering(*args, **_arg1, &block); end
|
2434
2502
|
|
2435
2503
|
# Matches if the actual value ends with the expected value(s). In the case
|
2436
2504
|
# of a string, matches against the last `expected.length` characters of the
|
@@ -2456,7 +2524,7 @@ module RSpec::Matchers
|
|
2456
2524
|
# expect([0, 2, 3, 4, 4]).to end_with 3, 4
|
2457
2525
|
#
|
2458
2526
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2459
|
-
def ending_with(*args, &block); end
|
2527
|
+
def ending_with(*args, **_arg1, &block); end
|
2460
2528
|
|
2461
2529
|
# Passes if <tt>actual == expected</tt>.
|
2462
2530
|
#
|
@@ -2480,7 +2548,7 @@ module RSpec::Matchers
|
|
2480
2548
|
# expect(5).not_to eq(3)
|
2481
2549
|
#
|
2482
2550
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2483
|
-
def eq_to(*args, &block); end
|
2551
|
+
def eq_to(*args, **_arg1, &block); end
|
2484
2552
|
|
2485
2553
|
# Passes if `actual.eql?(expected)`
|
2486
2554
|
#
|
@@ -2504,7 +2572,7 @@ module RSpec::Matchers
|
|
2504
2572
|
# expect(5).not_to eql(3)
|
2505
2573
|
#
|
2506
2574
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2507
|
-
def eql_to(*args, &block); end
|
2575
|
+
def eql_to(*args, **_arg1, &block); end
|
2508
2576
|
|
2509
2577
|
# Passes if <tt>actual.equal?(expected)</tt> (object identity).
|
2510
2578
|
#
|
@@ -2528,7 +2596,7 @@ module RSpec::Matchers
|
|
2528
2596
|
# expect("5").not_to equal("5") # Strings that look the same are not the same object
|
2529
2597
|
#
|
2530
2598
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2531
|
-
def equal_to(*args, &block); end
|
2599
|
+
def equal_to(*args, **_arg1, &block); end
|
2532
2600
|
|
2533
2601
|
# Passes if `actual.exist?` or `actual.exists?`
|
2534
2602
|
#
|
@@ -2544,7 +2612,7 @@ module RSpec::Matchers
|
|
2544
2612
|
# expect(File).to exist("path/to/file")
|
2545
2613
|
#
|
2546
2614
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2547
|
-
def existing(*args, &block); end
|
2615
|
+
def existing(*args, **_arg1, &block); end
|
2548
2616
|
|
2549
2617
|
# Supports `expect(actual).to matcher` syntax by wrapping `actual` in an
|
2550
2618
|
# `ExpectationTarget`.
|
@@ -2589,7 +2657,7 @@ module RSpec::Matchers
|
|
2589
2657
|
# @note It will fail if actual doesn't respond to any of the expected attributes.
|
2590
2658
|
#
|
2591
2659
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2592
|
-
def having_attributes(*args, &block); end
|
2660
|
+
def having_attributes(*args, **_arg1, &block); end
|
2593
2661
|
|
2594
2662
|
# Passes if actual includes expected. This works for
|
2595
2663
|
# collections and Strings. You can also pass in multiple args
|
@@ -2631,7 +2699,7 @@ module RSpec::Matchers
|
|
2631
2699
|
# expect(:a => 1, :b => 2).not_to include(:a => 2)
|
2632
2700
|
#
|
2633
2701
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2634
|
-
def including(*args, &block); end
|
2702
|
+
def including(*args, **_arg1, &block); end
|
2635
2703
|
|
2636
2704
|
# Given a `Regexp` or `String`, passes if `actual.match(pattern)`
|
2637
2705
|
# Given an arbitrary nested data structure (e.g. arrays and hashes),
|
@@ -2668,7 +2736,7 @@ module RSpec::Matchers
|
|
2668
2736
|
|
2669
2737
|
# An alternate form of `contain_exactly` that accepts
|
2670
2738
|
# the expected contents as a single array arg rather
|
2671
|
-
#
|
2739
|
+
# than splatted out as individual items.
|
2672
2740
|
#
|
2673
2741
|
# @example
|
2674
2742
|
# expect(results).to contain_exactly(1, 2)
|
@@ -2710,7 +2778,7 @@ module RSpec::Matchers
|
|
2710
2778
|
# `match` could not be used there), but is no longer needed in 3.x.
|
2711
2779
|
#
|
2712
2780
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2713
|
-
def match_regex(*args, &block); end
|
2781
|
+
def match_regex(*args, **_arg1, &block); end
|
2714
2782
|
|
2715
2783
|
# Given a `Regexp` or `String`, passes if `actual.match(pattern)`
|
2716
2784
|
# Given an arbitrary nested data structure (e.g. arrays and hashes),
|
@@ -2743,7 +2811,7 @@ module RSpec::Matchers
|
|
2743
2811
|
# `match` could not be used there), but is no longer needed in 3.x.
|
2744
2812
|
#
|
2745
2813
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2746
|
-
def matching(*args, &block); end
|
2814
|
+
def matching(*args, **_arg1, &block); end
|
2747
2815
|
|
2748
2816
|
# With no arg, passes if the block outputs `to_stdout` or `to_stderr`.
|
2749
2817
|
# With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`.
|
@@ -2775,13 +2843,13 @@ module RSpec::Matchers
|
|
2775
2843
|
# @note `to_stdout_from_any_process` and `to_stderr_from_any_process` use Tempfiles, and
|
2776
2844
|
# are thus significantly (~30x) slower than `to_stdout` and `to_stderr`.
|
2777
2845
|
#
|
2778
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
2846
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#752
|
2779
2847
|
def output(expected = T.unsafe(nil)); end
|
2780
2848
|
|
2781
2849
|
# With no args, matches if any error is raised.
|
2782
2850
|
# With a named error, matches only if that specific error is raised.
|
2783
|
-
# With a named error and
|
2784
|
-
# With a named error and
|
2851
|
+
# With a named error and message specified as a String, matches only if both match.
|
2852
|
+
# With a named error and message specified as a Regexp, matches only if both match.
|
2785
2853
|
# Pass an optional block to perform extra verifications on the exception matched
|
2786
2854
|
#
|
2787
2855
|
# @example
|
@@ -2795,13 +2863,13 @@ module RSpec::Matchers
|
|
2795
2863
|
#
|
2796
2864
|
# expect { do_something_risky }.not_to raise_error
|
2797
2865
|
#
|
2798
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
2866
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#773
|
2799
2867
|
def raise_error(error = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
2800
2868
|
|
2801
2869
|
# With no args, matches if any error is raised.
|
2802
2870
|
# With a named error, matches only if that specific error is raised.
|
2803
|
-
# With a named error and
|
2804
|
-
# With a named error and
|
2871
|
+
# With a named error and message specified as a String, matches only if both match.
|
2872
|
+
# With a named error and message specified as a Regexp, matches only if both match.
|
2805
2873
|
# Pass an optional block to perform extra verifications on the exception matched
|
2806
2874
|
#
|
2807
2875
|
# @example
|
@@ -2815,13 +2883,13 @@ module RSpec::Matchers
|
|
2815
2883
|
#
|
2816
2884
|
# expect { do_something_risky }.not_to raise_error
|
2817
2885
|
#
|
2818
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
2886
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#773
|
2819
2887
|
def raise_exception(error = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
2820
2888
|
|
2821
2889
|
# With no args, matches if any error is raised.
|
2822
2890
|
# With a named error, matches only if that specific error is raised.
|
2823
|
-
# With a named error and
|
2824
|
-
# With a named error and
|
2891
|
+
# With a named error and message specified as a String, matches only if both match.
|
2892
|
+
# With a named error and message specified as a Regexp, matches only if both match.
|
2825
2893
|
# Pass an optional block to perform extra verifications on the exception matched
|
2826
2894
|
#
|
2827
2895
|
# @example
|
@@ -2836,7 +2904,7 @@ module RSpec::Matchers
|
|
2836
2904
|
# expect { do_something_risky }.not_to raise_error
|
2837
2905
|
#
|
2838
2906
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2839
|
-
def raising(*args, &block); end
|
2907
|
+
def raising(*args, **_arg1, &block); end
|
2840
2908
|
|
2841
2909
|
# Matches if the target object responds to all of the names
|
2842
2910
|
# provided. Names can be Strings or Symbols.
|
@@ -2844,7 +2912,7 @@ module RSpec::Matchers
|
|
2844
2912
|
# @example
|
2845
2913
|
# expect("string").to respond_to(:length)
|
2846
2914
|
#
|
2847
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
2915
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#792
|
2848
2916
|
def respond_to(*names); end
|
2849
2917
|
|
2850
2918
|
# Matches if the target object responds to all of the names
|
@@ -2854,7 +2922,7 @@ module RSpec::Matchers
|
|
2854
2922
|
# expect("string").to respond_to(:length)
|
2855
2923
|
#
|
2856
2924
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2857
|
-
def responding_to(*args, &block); end
|
2925
|
+
def responding_to(*args, **_arg1, &block); end
|
2858
2926
|
|
2859
2927
|
# Passes if the submitted block returns true. Yields target to the
|
2860
2928
|
# block.
|
@@ -2871,7 +2939,7 @@ module RSpec::Matchers
|
|
2871
2939
|
# expect(5).to satisfy("be greater than 3") { |n| n > 3 }
|
2872
2940
|
# @param description [String] optional description to be used for this matcher.
|
2873
2941
|
#
|
2874
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
2942
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#813
|
2875
2943
|
def satisfy(description = T.unsafe(nil), &block); end
|
2876
2944
|
|
2877
2945
|
# Passes if the submitted block returns true. Yields target to the
|
@@ -2890,7 +2958,7 @@ module RSpec::Matchers
|
|
2890
2958
|
# @param description [String] optional description to be used for this matcher.
|
2891
2959
|
#
|
2892
2960
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2893
|
-
def satisfying(*args, &block); end
|
2961
|
+
def satisfying(*args, **_arg1, &block); end
|
2894
2962
|
|
2895
2963
|
# Matches if the actual value starts with the expected value(s). In the
|
2896
2964
|
# case of a string, matches against the first `expected.length` characters
|
@@ -2902,7 +2970,7 @@ module RSpec::Matchers
|
|
2902
2970
|
# expect([0, 1, 2, 3, 4]).to start_with 0
|
2903
2971
|
# expect([0, 2, 3, 4, 4]).to start_with 0, 1
|
2904
2972
|
#
|
2905
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
2973
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#828
|
2906
2974
|
def start_with(*expected); end
|
2907
2975
|
|
2908
2976
|
# Matches if the actual value starts with the expected value(s). In the
|
@@ -2916,7 +2984,7 @@ module RSpec::Matchers
|
|
2916
2984
|
# expect([0, 2, 3, 4, 4]).to start_with 0, 1
|
2917
2985
|
#
|
2918
2986
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2919
|
-
def starting_with(*args, &block); end
|
2987
|
+
def starting_with(*args, **_arg1, &block); end
|
2920
2988
|
|
2921
2989
|
# Given no argument, matches if a proc throws any Symbol.
|
2922
2990
|
#
|
@@ -2934,7 +3002,7 @@ module RSpec::Matchers
|
|
2934
3002
|
# expect { do_something_risky }.not_to throw_symbol(:that_was_risky)
|
2935
3003
|
# expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit')
|
2936
3004
|
#
|
2937
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3005
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#850
|
2938
3006
|
def throw_symbol(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end
|
2939
3007
|
|
2940
3008
|
# Given no argument, matches if a proc throws any Symbol.
|
@@ -2954,7 +3022,7 @@ module RSpec::Matchers
|
|
2954
3022
|
# expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit')
|
2955
3023
|
#
|
2956
3024
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2957
|
-
def throwing(*args, &block); end
|
3025
|
+
def throwing(*args, **_arg1, &block); end
|
2958
3026
|
|
2959
3027
|
# Passes if actual == expected +/- delta
|
2960
3028
|
#
|
@@ -2963,7 +3031,7 @@ module RSpec::Matchers
|
|
2963
3031
|
# expect(result).not_to be_within(0.5).of(3.0)
|
2964
3032
|
#
|
2965
3033
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2966
|
-
def within(*args, &block); end
|
3034
|
+
def within(*args, **_arg1, &block); end
|
2967
3035
|
|
2968
3036
|
# Passes if the method called in the expect block yields, regardless
|
2969
3037
|
# of whether or not arguments are yielded.
|
@@ -2974,7 +3042,7 @@ module RSpec::Matchers
|
|
2974
3042
|
# @note Your expect block must accept a parameter and pass it on to
|
2975
3043
|
# the method-under-test as a block.
|
2976
3044
|
#
|
2977
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3045
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#871
|
2978
3046
|
def yield_control; end
|
2979
3047
|
|
2980
3048
|
# Designed for use with methods that repeatedly yield (such as
|
@@ -2992,7 +3060,7 @@ module RSpec::Matchers
|
|
2992
3060
|
# @note Your expect block must accept a parameter and pass it on to
|
2993
3061
|
# the method-under-test as a block.
|
2994
3062
|
#
|
2995
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3063
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#940
|
2996
3064
|
def yield_successive_args(*args); end
|
2997
3065
|
|
2998
3066
|
# Given no arguments, matches if the method called in the expect
|
@@ -3019,7 +3087,7 @@ module RSpec::Matchers
|
|
3019
3087
|
# @note This matcher is not designed for use with methods that yield
|
3020
3088
|
# multiple times.
|
3021
3089
|
#
|
3022
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3090
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#919
|
3023
3091
|
def yield_with_args(*args); end
|
3024
3092
|
|
3025
3093
|
# Passes if the method called in the expect block yields with
|
@@ -3034,7 +3102,7 @@ module RSpec::Matchers
|
|
3034
3102
|
# @note This matcher is not designed for use with methods that yield
|
3035
3103
|
# multiple times.
|
3036
3104
|
#
|
3037
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3105
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#889
|
3038
3106
|
def yield_with_no_args; end
|
3039
3107
|
|
3040
3108
|
# Passes if the method called in the expect block yields, regardless
|
@@ -3047,7 +3115,7 @@ module RSpec::Matchers
|
|
3047
3115
|
# the method-under-test as a block.
|
3048
3116
|
#
|
3049
3117
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3050
|
-
def yielding_control(*args, &block); end
|
3118
|
+
def yielding_control(*args, **_arg1, &block); end
|
3051
3119
|
|
3052
3120
|
# Designed for use with methods that repeatedly yield (such as
|
3053
3121
|
# iterators). Passes if the method called in the expect block yields
|
@@ -3065,7 +3133,7 @@ module RSpec::Matchers
|
|
3065
3133
|
# the method-under-test as a block.
|
3066
3134
|
#
|
3067
3135
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3068
|
-
def yielding_successive_args(*args, &block); end
|
3136
|
+
def yielding_successive_args(*args, **_arg1, &block); end
|
3069
3137
|
|
3070
3138
|
# Given no arguments, matches if the method called in the expect
|
3071
3139
|
# block yields with arguments (regardless of what they are or how
|
@@ -3092,7 +3160,7 @@ module RSpec::Matchers
|
|
3092
3160
|
# multiple times.
|
3093
3161
|
#
|
3094
3162
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3095
|
-
def yielding_with_args(*args, &block); end
|
3163
|
+
def yielding_with_args(*args, **_arg1, &block); end
|
3096
3164
|
|
3097
3165
|
# Passes if the method called in the expect block yields with
|
3098
3166
|
# no arguments. Fails if it does not yield, or yields with arguments.
|
@@ -3107,16 +3175,16 @@ module RSpec::Matchers
|
|
3107
3175
|
# multiple times.
|
3108
3176
|
#
|
3109
3177
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3110
|
-
def yielding_with_no_args(*args, &block); end
|
3178
|
+
def yielding_with_no_args(*args, **_arg1, &block); end
|
3111
3179
|
|
3112
3180
|
private
|
3113
3181
|
|
3114
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3182
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#961
|
3115
3183
|
def method_missing(method, *args, **_arg2, &block); end
|
3116
3184
|
|
3117
3185
|
# @return [Boolean]
|
3118
3186
|
#
|
3119
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3187
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#974
|
3120
3188
|
def respond_to_missing?(method, *_arg1); end
|
3121
3189
|
|
3122
3190
|
class << self
|
@@ -3140,7 +3208,7 @@ module RSpec::Matchers
|
|
3140
3208
|
#
|
3141
3209
|
# @return [RSpec::Expectations::Configuration] the configuration object
|
3142
3210
|
#
|
3143
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3211
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#951
|
3144
3212
|
def configuration; end
|
3145
3213
|
|
3146
3214
|
# Generates an an example description based on the last expectation.
|
@@ -3154,13 +3222,13 @@ module RSpec::Matchers
|
|
3154
3222
|
# @api private
|
3155
3223
|
# @return [Boolean]
|
3156
3224
|
#
|
3157
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3225
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#1008
|
3158
3226
|
def is_a_describable_matcher?(obj); end
|
3159
3227
|
|
3160
3228
|
# @api private
|
3161
3229
|
# @return [Boolean]
|
3162
3230
|
#
|
3163
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3231
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#988
|
3164
3232
|
def is_a_matcher?(obj); end
|
3165
3233
|
|
3166
3234
|
# @private
|
@@ -3287,7 +3355,7 @@ class RSpec::Matchers::AliasedNegatedMatcher < ::RSpec::Matchers::AliasedMatcher
|
|
3287
3355
|
# by going through the effort of defining a negated matcher.
|
3288
3356
|
#
|
3289
3357
|
# However, if the override didn't actually change anything, then we
|
3290
|
-
# should return the opposite failure message instead -- the
|
3358
|
+
# should return the opposite failure message instead -- the overridden
|
3291
3359
|
# message is going to be confusing if we return it as-is, as it represents
|
3292
3360
|
# the non-negated failure message for a negated match (or vice versa).
|
3293
3361
|
#
|
@@ -3298,9 +3366,21 @@ end
|
|
3298
3366
|
# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#94
|
3299
3367
|
RSpec::Matchers::AliasedNegatedMatcher::DefaultFailureMessages = RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
3300
3368
|
|
3301
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
3369
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#957
|
3302
3370
|
RSpec::Matchers::BE_PREDICATE_REGEX = T.let(T.unsafe(nil), Regexp)
|
3303
3371
|
|
3372
|
+
# Provides a base class with as little methods as possible, so that
|
3373
|
+
# most methods can be delegated via `method_missing`.
|
3374
|
+
#
|
3375
|
+
# On Ruby 2.0+ BasicObject could be used for this purpose, but it
|
3376
|
+
# introduce some extra complexity with constant resolution, so the
|
3377
|
+
# BlankSlate pattern was prefered.
|
3378
|
+
#
|
3379
|
+
# @private
|
3380
|
+
#
|
3381
|
+
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#10
|
3382
|
+
class RSpec::Matchers::BaseDelegator; end
|
3383
|
+
|
3304
3384
|
# Container module for all built-in matchers. The matcher classes are here
|
3305
3385
|
# (rather than directly under `RSpec::Matchers`) in order to prevent name
|
3306
3386
|
# collisions, since `RSpec::Matchers` gets included into the user's namespace.
|
@@ -3411,6 +3491,7 @@ end
|
|
3411
3491
|
class RSpec::Matchers::BuiltIn::BaseMatcher
|
3412
3492
|
include ::RSpec::Matchers::Composable
|
3413
3493
|
include ::RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
|
3494
|
+
include ::RSpec::Matchers::BuiltIn::BaseMatcher::StringEncodingFormatting
|
3414
3495
|
include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
3415
3496
|
|
3416
3497
|
# @api private
|
@@ -3428,7 +3509,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher
|
|
3428
3509
|
# @api private
|
3429
3510
|
# @private
|
3430
3511
|
#
|
3431
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3512
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#97
|
3432
3513
|
def actual_formatted; end
|
3433
3514
|
|
3434
3515
|
# Generates a description using {EnglishPhrasing}.
|
@@ -3457,13 +3538,13 @@ class RSpec::Matchers::BuiltIn::BaseMatcher
|
|
3457
3538
|
# @api private
|
3458
3539
|
# @private
|
3459
3540
|
#
|
3460
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3541
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#92
|
3461
3542
|
def expected_formatted; end
|
3462
3543
|
|
3463
3544
|
# @api private
|
3464
3545
|
# @return [Boolean]
|
3465
3546
|
#
|
3466
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3547
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#87
|
3467
3548
|
def expects_call_stack_jump?; end
|
3468
3549
|
|
3469
3550
|
# Used to wrap a block of code that will indicate failure by
|
@@ -3480,7 +3561,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher
|
|
3480
3561
|
# @api private
|
3481
3562
|
# @private
|
3482
3563
|
#
|
3483
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3564
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#107
|
3484
3565
|
def matcher_name; end
|
3485
3566
|
|
3486
3567
|
# @api private
|
@@ -3499,11 +3580,6 @@ class RSpec::Matchers::BuiltIn::BaseMatcher
|
|
3499
3580
|
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#36
|
3500
3581
|
def matches?(actual); end
|
3501
3582
|
|
3502
|
-
# :nocov:
|
3503
|
-
#
|
3504
|
-
# @api private
|
3505
|
-
def present_ivars; end
|
3506
|
-
|
3507
3583
|
# @api private
|
3508
3584
|
# @private
|
3509
3585
|
#
|
@@ -3520,18 +3596,18 @@ class RSpec::Matchers::BuiltIn::BaseMatcher
|
|
3520
3596
|
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#77
|
3521
3597
|
def supports_block_expectations?; end
|
3522
3598
|
|
3523
|
-
private
|
3524
|
-
|
3525
3599
|
# @api private
|
3600
|
+
# @private
|
3601
|
+
# @return [Boolean]
|
3526
3602
|
#
|
3527
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3528
|
-
def
|
3603
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#82
|
3604
|
+
def supports_value_expectations?; end
|
3529
3605
|
|
3530
3606
|
class << self
|
3531
3607
|
# @api private
|
3532
3608
|
# @private
|
3533
3609
|
#
|
3534
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3610
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#102
|
3535
3611
|
def matcher_name; end
|
3536
3612
|
|
3537
3613
|
private
|
@@ -3541,7 +3617,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher
|
|
3541
3617
|
# @api private
|
3542
3618
|
# @private
|
3543
3619
|
#
|
3544
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3620
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#117
|
3545
3621
|
def underscore(camel_cased_word); end
|
3546
3622
|
end
|
3547
3623
|
end
|
@@ -3550,7 +3626,7 @@ end
|
|
3550
3626
|
#
|
3551
3627
|
# @api private
|
3552
3628
|
#
|
3553
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3629
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#193
|
3554
3630
|
module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
3555
3631
|
# Provides a good generic failure message. Based on `description`.
|
3556
3632
|
# When subclassing, if you are not satisfied with this failure message
|
@@ -3559,7 +3635,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
3559
3635
|
# @api private
|
3560
3636
|
# @return [String]
|
3561
3637
|
#
|
3562
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3638
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#199
|
3563
3639
|
def failure_message; end
|
3564
3640
|
|
3565
3641
|
# Provides a good generic negative failure message. Based on `description`.
|
@@ -3569,7 +3645,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
3569
3645
|
# @api private
|
3570
3646
|
# @return [String]
|
3571
3647
|
#
|
3572
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3648
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#208
|
3573
3649
|
def failure_message_when_negated; end
|
3574
3650
|
|
3575
3651
|
class << self
|
@@ -3577,7 +3653,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
3577
3653
|
# @private
|
3578
3654
|
# @return [Boolean]
|
3579
3655
|
#
|
3580
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3656
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#213
|
3581
3657
|
def has_default_failure_messages?(matcher); end
|
3582
3658
|
end
|
3583
3659
|
end
|
@@ -3585,7 +3661,7 @@ end
|
|
3585
3661
|
# @api private
|
3586
3662
|
# @private
|
3587
3663
|
#
|
3588
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3664
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#128
|
3589
3665
|
module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
|
3590
3666
|
private
|
3591
3667
|
|
@@ -3601,7 +3677,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
|
|
3601
3677
|
#
|
3602
3678
|
# @api private
|
3603
3679
|
#
|
3604
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3680
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#138
|
3605
3681
|
def improve_hash_formatting(inspect_string); end
|
3606
3682
|
|
3607
3683
|
class << self
|
@@ -3617,11 +3693,57 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
|
|
3617
3693
|
#
|
3618
3694
|
# @api private
|
3619
3695
|
#
|
3620
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#
|
3696
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#138
|
3621
3697
|
def improve_hash_formatting(inspect_string); end
|
3622
3698
|
end
|
3623
3699
|
end
|
3624
3700
|
|
3701
|
+
# @api private
|
3702
|
+
# @private
|
3703
|
+
#
|
3704
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#147
|
3705
|
+
module RSpec::Matchers::BuiltIn::BaseMatcher::StringEncodingFormatting
|
3706
|
+
private
|
3707
|
+
|
3708
|
+
# Formats a String's encoding as a human readable string
|
3709
|
+
# :nocov:
|
3710
|
+
#
|
3711
|
+
# @api private
|
3712
|
+
# @param _value [String]
|
3713
|
+
# @return [nil] nil as the curent Ruby version does not support String encoding
|
3714
|
+
#
|
3715
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#172
|
3716
|
+
def format_encoding(value); end
|
3717
|
+
|
3718
|
+
# :nocov:
|
3719
|
+
#
|
3720
|
+
# @api private
|
3721
|
+
# @return [Boolean] False always as the curent Ruby version does not support String encoding
|
3722
|
+
#
|
3723
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#153
|
3724
|
+
def string_encoding_differs?; end
|
3725
|
+
|
3726
|
+
class << self
|
3727
|
+
# Formats a String's encoding as a human readable string
|
3728
|
+
# :nocov:
|
3729
|
+
#
|
3730
|
+
# @api private
|
3731
|
+
# @param _value [String]
|
3732
|
+
# @return [nil] nil as the curent Ruby version does not support String encoding
|
3733
|
+
#
|
3734
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#172
|
3735
|
+
def format_encoding(value); end
|
3736
|
+
|
3737
|
+
# :nocov:
|
3738
|
+
#
|
3739
|
+
# @api private
|
3740
|
+
# @return [Boolean] False always as the curent Ruby version does not support String encoding
|
3741
|
+
#
|
3742
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#153
|
3743
|
+
def string_encoding_differs?; end
|
3744
|
+
end
|
3745
|
+
end
|
3746
|
+
|
3625
3747
|
# Used to detect when no arg is passed to `initialize`.
|
3626
3748
|
# `nil` cannot be used because it's a valid value to pass.
|
3627
3749
|
#
|
@@ -3926,40 +4048,40 @@ end
|
|
3926
4048
|
#
|
3927
4049
|
# @api private
|
3928
4050
|
#
|
3929
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
4051
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#164
|
3930
4052
|
class RSpec::Matchers::BuiltIn::BePredicate < ::RSpec::Matchers::BuiltIn::DynamicPredicate
|
3931
4053
|
private
|
3932
4054
|
|
3933
4055
|
# @api private
|
3934
4056
|
#
|
3935
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
4057
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#176
|
3936
4058
|
def failure_to_respond_explanation; end
|
3937
4059
|
|
3938
4060
|
# @api private
|
3939
4061
|
#
|
3940
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
4062
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#168
|
3941
4063
|
def predicate; end
|
3942
4064
|
|
3943
4065
|
# @api private
|
3944
4066
|
# @return [Boolean]
|
3945
4067
|
#
|
3946
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
4068
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#184
|
3947
4069
|
def predicate_accessible?; end
|
3948
4070
|
|
3949
4071
|
# @api private
|
3950
4072
|
#
|
3951
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
4073
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#172
|
3952
4074
|
def predicate_method_name; end
|
3953
4075
|
|
3954
4076
|
# @api private
|
3955
4077
|
#
|
3956
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
4078
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#188
|
3957
4079
|
def present_tense_predicate; end
|
3958
4080
|
end
|
3959
4081
|
|
3960
4082
|
# @api private
|
3961
4083
|
#
|
3962
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
4084
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#166
|
3963
4085
|
RSpec::Matchers::BuiltIn::BePredicate::REGEX = T.let(T.unsafe(nil), Regexp)
|
3964
4086
|
|
3965
4087
|
# Provides the implementation for `be_truthy`.
|
@@ -4063,35 +4185,35 @@ end
|
|
4063
4185
|
|
4064
4186
|
# @private
|
4065
4187
|
#
|
4066
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
4188
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#159
|
4067
4189
|
module RSpec::Matchers::BuiltIn::CaptureStderr
|
4068
4190
|
class << self
|
4069
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
4191
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#164
|
4070
4192
|
def capture(block); end
|
4071
4193
|
|
4072
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
4194
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#160
|
4073
4195
|
def name; end
|
4074
4196
|
end
|
4075
4197
|
end
|
4076
4198
|
|
4077
4199
|
# @private
|
4078
4200
|
#
|
4079
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
4201
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#139
|
4080
4202
|
module RSpec::Matchers::BuiltIn::CaptureStdout
|
4081
4203
|
class << self
|
4082
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
4204
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#144
|
4083
4205
|
def capture(block); end
|
4084
4206
|
|
4085
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
4207
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#140
|
4086
4208
|
def name; end
|
4087
4209
|
end
|
4088
4210
|
end
|
4089
4211
|
|
4090
4212
|
# @private
|
4091
4213
|
#
|
4092
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
4214
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#179
|
4093
4215
|
class RSpec::Matchers::BuiltIn::CaptureStreamToTempfile < ::Struct
|
4094
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
4216
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#180
|
4095
4217
|
def capture(block); end
|
4096
4218
|
end
|
4097
4219
|
|
@@ -4105,7 +4227,7 @@ class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
4105
4227
|
# @api private
|
4106
4228
|
# @return [Change] a new instance of Change
|
4107
4229
|
#
|
4108
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4230
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#87
|
4109
4231
|
def initialize(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
4110
4232
|
|
4111
4233
|
# Specifies the delta of the expected change.
|
@@ -4174,6 +4296,13 @@ class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
4174
4296
|
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#76
|
4175
4297
|
def supports_block_expectations?; end
|
4176
4298
|
|
4299
|
+
# @api private
|
4300
|
+
# @private
|
4301
|
+
# @return [Boolean]
|
4302
|
+
#
|
4303
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#81
|
4304
|
+
def supports_value_expectations?; end
|
4305
|
+
|
4177
4306
|
# Specifies the new value you expect.
|
4178
4307
|
#
|
4179
4308
|
# @api public
|
@@ -4185,28 +4314,28 @@ class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
4185
4314
|
|
4186
4315
|
# @api private
|
4187
4316
|
#
|
4188
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4317
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#93
|
4189
4318
|
def change_details; end
|
4190
4319
|
|
4191
4320
|
# @api private
|
4192
4321
|
#
|
4193
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4322
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#119
|
4194
4323
|
def negative_failure_reason; end
|
4195
4324
|
|
4196
4325
|
# @api private
|
4197
4326
|
#
|
4198
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4327
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#97
|
4199
4328
|
def perform_change(event_proc); end
|
4200
4329
|
|
4201
4330
|
# @api private
|
4202
4331
|
#
|
4203
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4332
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#114
|
4204
4333
|
def positive_failure_reason; end
|
4205
4334
|
|
4206
4335
|
# @api private
|
4207
4336
|
# @raise [SyntaxError]
|
4208
4337
|
#
|
4209
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4338
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#109
|
4210
4339
|
def raise_block_syntax_error; end
|
4211
4340
|
end
|
4212
4341
|
|
@@ -4226,84 +4355,89 @@ end
|
|
4226
4355
|
#
|
4227
4356
|
# @private
|
4228
4357
|
#
|
4229
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4358
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#352
|
4230
4359
|
class RSpec::Matchers::BuiltIn::ChangeDetails
|
4231
4360
|
# @return [ChangeDetails] a new instance of ChangeDetails
|
4232
4361
|
#
|
4233
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4362
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#357
|
4234
4363
|
def initialize(matcher_name, receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
4235
4364
|
|
4236
4365
|
# Returns the value of attribute actual_after.
|
4237
4366
|
#
|
4238
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4367
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#353
|
4239
4368
|
def actual_after; end
|
4240
4369
|
|
4241
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4370
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#418
|
4242
4371
|
def actual_delta; end
|
4243
4372
|
|
4244
4373
|
# @return [Boolean]
|
4245
4374
|
#
|
4246
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4375
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#402
|
4247
4376
|
def changed?; end
|
4248
4377
|
|
4249
4378
|
# @yield [@actual_before]
|
4250
4379
|
#
|
4251
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4380
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#389
|
4252
4381
|
def perform_change(event_proc); end
|
4253
4382
|
|
4254
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4383
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#378
|
4255
4384
|
def value_representation; end
|
4256
4385
|
|
4257
4386
|
private
|
4258
4387
|
|
4259
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4388
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#424
|
4260
4389
|
def evaluate_value_proc; end
|
4261
4390
|
|
4262
|
-
#
|
4391
|
+
# :nocov:
|
4392
|
+
#
|
4393
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#438
|
4263
4394
|
def extract_value_block_snippet; end
|
4264
4395
|
|
4265
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4396
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#428
|
4266
4397
|
def message_notation(receiver, message); end
|
4267
4398
|
end
|
4268
4399
|
|
4400
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#355
|
4401
|
+
module RSpec::Matchers::BuiltIn::ChangeDetails::UNDEFINED; end
|
4402
|
+
|
4269
4403
|
# Used to specify a change from a specific value
|
4270
4404
|
# (and, optionally, to a specific value).
|
4271
4405
|
#
|
4272
4406
|
# @api private
|
4273
4407
|
#
|
4274
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4408
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#270
|
4275
4409
|
class RSpec::Matchers::BuiltIn::ChangeFromValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange
|
4276
4410
|
# @api private
|
4277
4411
|
# @return [ChangeFromValue] a new instance of ChangeFromValue
|
4278
4412
|
#
|
4279
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4413
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#271
|
4280
4414
|
def initialize(change_details, expected_before); end
|
4281
4415
|
|
4282
4416
|
# @api private
|
4283
4417
|
# @private
|
4284
4418
|
# @return [Boolean]
|
4285
4419
|
#
|
4286
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4420
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#285
|
4287
4421
|
def does_not_match?(event_proc); end
|
4288
4422
|
|
4289
4423
|
# @api private
|
4290
4424
|
# @private
|
4291
4425
|
#
|
4292
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4426
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#295
|
4293
4427
|
def failure_message_when_negated; end
|
4294
4428
|
|
4295
4429
|
# Specifies the new value you expect.
|
4296
4430
|
#
|
4297
4431
|
# @api public
|
4298
4432
|
#
|
4299
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4433
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#278
|
4300
4434
|
def to(value); end
|
4301
4435
|
|
4302
4436
|
private
|
4303
4437
|
|
4304
4438
|
# @api private
|
4305
4439
|
#
|
4306
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4440
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#303
|
4307
4441
|
def change_description; end
|
4308
4442
|
end
|
4309
4443
|
|
@@ -4311,18 +4445,18 @@ end
|
|
4311
4445
|
#
|
4312
4446
|
# @api private
|
4313
4447
|
#
|
4314
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4448
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#128
|
4315
4449
|
class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
4316
4450
|
# @api private
|
4317
4451
|
# @return [ChangeRelatively] a new instance of ChangeRelatively
|
4318
4452
|
#
|
4319
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4453
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#129
|
4320
4454
|
def initialize(change_details, expected_delta, relativity, &comparer); end
|
4321
4455
|
|
4322
4456
|
# @api private
|
4323
4457
|
# @private
|
4324
4458
|
#
|
4325
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4459
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#156
|
4326
4460
|
def description; end
|
4327
4461
|
|
4328
4462
|
# @api private
|
@@ -4330,34 +4464,41 @@ class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::B
|
|
4330
4464
|
# @raise [NotImplementedError]
|
4331
4465
|
# @return [Boolean]
|
4332
4466
|
#
|
4333
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4467
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#150
|
4334
4468
|
def does_not_match?(_event_proc); end
|
4335
4469
|
|
4336
4470
|
# @api private
|
4337
4471
|
# @private
|
4338
4472
|
#
|
4339
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4473
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#137
|
4340
4474
|
def failure_message; end
|
4341
4475
|
|
4342
4476
|
# @api private
|
4343
4477
|
# @private
|
4344
4478
|
# @return [Boolean]
|
4345
4479
|
#
|
4346
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4480
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#144
|
4347
4481
|
def matches?(event_proc); end
|
4348
4482
|
|
4349
4483
|
# @api private
|
4350
4484
|
# @private
|
4351
4485
|
# @return [Boolean]
|
4352
4486
|
#
|
4353
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4487
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#162
|
4354
4488
|
def supports_block_expectations?; end
|
4355
4489
|
|
4490
|
+
# @api private
|
4491
|
+
# @private
|
4492
|
+
# @return [Boolean]
|
4493
|
+
#
|
4494
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#167
|
4495
|
+
def supports_value_expectations?; end
|
4496
|
+
|
4356
4497
|
private
|
4357
4498
|
|
4358
4499
|
# @api private
|
4359
4500
|
#
|
4360
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4501
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#173
|
4361
4502
|
def failure_reason; end
|
4362
4503
|
end
|
4363
4504
|
|
@@ -4366,12 +4507,12 @@ end
|
|
4366
4507
|
#
|
4367
4508
|
# @api private
|
4368
4509
|
#
|
4369
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4510
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#311
|
4370
4511
|
class RSpec::Matchers::BuiltIn::ChangeToValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange
|
4371
4512
|
# @api private
|
4372
4513
|
# @return [ChangeToValue] a new instance of ChangeToValue
|
4373
4514
|
#
|
4374
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4515
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#312
|
4375
4516
|
def initialize(change_details, expected_after); end
|
4376
4517
|
|
4377
4518
|
# @api private
|
@@ -4379,21 +4520,21 @@ class RSpec::Matchers::BuiltIn::ChangeToValue < ::RSpec::Matchers::BuiltIn::Spec
|
|
4379
4520
|
# @raise [NotImplementedError]
|
4380
4521
|
# @return [Boolean]
|
4381
4522
|
#
|
4382
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4523
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#326
|
4383
4524
|
def does_not_match?(_event_proc); end
|
4384
4525
|
|
4385
4526
|
# Specifies the original value.
|
4386
4527
|
#
|
4387
4528
|
# @api public
|
4388
4529
|
#
|
4389
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4530
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#319
|
4390
4531
|
def from(value); end
|
4391
4532
|
|
4392
4533
|
private
|
4393
4534
|
|
4394
4535
|
# @api private
|
4395
4536
|
#
|
4396
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4537
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#333
|
4397
4538
|
def change_description; end
|
4398
4539
|
end
|
4399
4540
|
|
@@ -4418,7 +4559,7 @@ class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatch
|
|
4418
4559
|
# @api private
|
4419
4560
|
# @return [Boolean]
|
4420
4561
|
#
|
4421
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4562
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#49
|
4422
4563
|
def diffable?; end
|
4423
4564
|
|
4424
4565
|
# @api private
|
@@ -4436,15 +4577,15 @@ class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatch
|
|
4436
4577
|
def evaluator; end
|
4437
4578
|
|
4438
4579
|
# @api private
|
4439
|
-
# @return [RSpec::Matchers::
|
4580
|
+
# @return [RSpec::Matchers::MultiMatcherDiff]
|
4440
4581
|
#
|
4441
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4582
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#55
|
4442
4583
|
def expected; end
|
4443
4584
|
|
4444
4585
|
# @api private
|
4445
4586
|
# @return [Boolean]
|
4446
4587
|
#
|
4447
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4588
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#42
|
4448
4589
|
def expects_call_stack_jump?; end
|
4449
4590
|
|
4450
4591
|
# @api private
|
@@ -4462,90 +4603,102 @@ class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatch
|
|
4462
4603
|
# @api private
|
4463
4604
|
# @return [Boolean]
|
4464
4605
|
#
|
4465
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4606
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#30
|
4466
4607
|
def supports_block_expectations?; end
|
4467
4608
|
|
4609
|
+
# @api private
|
4610
|
+
# @return [Boolean]
|
4611
|
+
#
|
4612
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#36
|
4613
|
+
def supports_value_expectations?; end
|
4614
|
+
|
4468
4615
|
protected
|
4469
4616
|
|
4470
4617
|
# @api private
|
4471
4618
|
#
|
4472
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4619
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#62
|
4473
4620
|
def diffable_matcher_list; end
|
4474
4621
|
|
4475
4622
|
private
|
4476
4623
|
|
4477
4624
|
# @api private
|
4478
4625
|
#
|
4479
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4626
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#96
|
4480
4627
|
def compound_failure_message; end
|
4481
4628
|
|
4482
4629
|
# @api private
|
4483
4630
|
#
|
4484
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4631
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#128
|
4485
4632
|
def diffable_matcher_list_for(matcher); end
|
4486
4633
|
|
4487
4634
|
# @api private
|
4488
4635
|
#
|
4489
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4636
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#90
|
4490
4637
|
def indent_multiline_message(message); end
|
4491
4638
|
|
4492
4639
|
# @api private
|
4493
4640
|
#
|
4494
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4641
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#71
|
4495
4642
|
def initialize_copy(other); end
|
4496
4643
|
|
4497
4644
|
# @api private
|
4498
4645
|
#
|
4499
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4646
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#77
|
4500
4647
|
def match(_expected, actual); end
|
4501
4648
|
|
4502
4649
|
# @api private
|
4503
4650
|
# @return [Boolean]
|
4504
4651
|
#
|
4505
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4652
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#102
|
4506
4653
|
def matcher_1_matches?; end
|
4507
4654
|
|
4508
4655
|
# @api private
|
4509
4656
|
# @return [Boolean]
|
4510
4657
|
#
|
4511
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4658
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#106
|
4512
4659
|
def matcher_2_matches?; end
|
4513
4660
|
|
4514
4661
|
# @api private
|
4515
4662
|
# @return [Boolean]
|
4516
4663
|
#
|
4517
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4664
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#122
|
4518
4665
|
def matcher_is_diffable?(matcher); end
|
4519
4666
|
|
4520
4667
|
# @api private
|
4521
4668
|
# @return [Boolean]
|
4522
4669
|
#
|
4523
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4670
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#110
|
4524
4671
|
def matcher_supports_block_expectations?(matcher); end
|
4672
|
+
|
4673
|
+
# @api private
|
4674
|
+
# @return [Boolean]
|
4675
|
+
#
|
4676
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#116
|
4677
|
+
def matcher_supports_value_expectations?(matcher); end
|
4525
4678
|
end
|
4526
4679
|
|
4527
4680
|
# Matcher used to represent a compound `and` expectation.
|
4528
4681
|
#
|
4529
4682
|
# @api public
|
4530
4683
|
#
|
4531
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4684
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#245
|
4532
4685
|
class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound
|
4533
4686
|
# @api private
|
4534
4687
|
# @return [String]
|
4535
4688
|
#
|
4536
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4689
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#248
|
4537
4690
|
def failure_message; end
|
4538
4691
|
|
4539
4692
|
private
|
4540
4693
|
|
4541
4694
|
# @api public
|
4542
4695
|
#
|
4543
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4696
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#265
|
4544
4697
|
def conjunction; end
|
4545
4698
|
|
4546
4699
|
# @api public
|
4547
4700
|
#
|
4548
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4701
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#260
|
4549
4702
|
def match(*_arg0); end
|
4550
4703
|
end
|
4551
4704
|
|
@@ -4566,18 +4719,18 @@ end
|
|
4566
4719
|
#
|
4567
4720
|
# @api private
|
4568
4721
|
#
|
4569
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4722
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#159
|
4570
4723
|
class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator
|
4571
4724
|
# @api private
|
4572
4725
|
# @return [NestedEvaluator] a new instance of NestedEvaluator
|
4573
4726
|
#
|
4574
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4727
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#160
|
4575
4728
|
def initialize(actual, matcher_1, matcher_2); end
|
4576
4729
|
|
4577
4730
|
# @api private
|
4578
4731
|
# @return [Boolean]
|
4579
4732
|
#
|
4580
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4733
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#173
|
4581
4734
|
def matcher_matches?(matcher); end
|
4582
4735
|
|
4583
4736
|
private
|
@@ -4588,7 +4741,7 @@ class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator
|
|
4588
4741
|
#
|
4589
4742
|
# @api private
|
4590
4743
|
#
|
4591
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4744
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#187
|
4592
4745
|
def inner_matcher_block(outer_args); end
|
4593
4746
|
|
4594
4747
|
# For a matcher like `raise_error` or `throw_symbol`, where the block will jump
|
@@ -4621,14 +4774,14 @@ class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator
|
|
4621
4774
|
# @api private
|
4622
4775
|
# @raise [ArgumentError]
|
4623
4776
|
#
|
4624
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4777
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#227
|
4625
4778
|
def order_block_matchers; end
|
4626
4779
|
|
4627
4780
|
class << self
|
4628
4781
|
# @api private
|
4629
4782
|
# @return [Boolean]
|
4630
4783
|
#
|
4631
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4784
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#236
|
4632
4785
|
def matcher_expects_call_stack_jump?(matcher); end
|
4633
4786
|
end
|
4634
4787
|
end
|
@@ -4637,24 +4790,24 @@ end
|
|
4637
4790
|
#
|
4638
4791
|
# @api public
|
4639
4792
|
#
|
4640
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4793
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#272
|
4641
4794
|
class RSpec::Matchers::BuiltIn::Compound::Or < ::RSpec::Matchers::BuiltIn::Compound
|
4642
4795
|
# @api private
|
4643
4796
|
# @return [String]
|
4644
4797
|
#
|
4645
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4798
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#275
|
4646
4799
|
def failure_message; end
|
4647
4800
|
|
4648
4801
|
private
|
4649
4802
|
|
4650
4803
|
# @api public
|
4651
4804
|
#
|
4652
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4805
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#286
|
4653
4806
|
def conjunction; end
|
4654
4807
|
|
4655
4808
|
# @api public
|
4656
4809
|
#
|
4657
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4810
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#281
|
4658
4811
|
def match(*_arg0); end
|
4659
4812
|
end
|
4660
4813
|
|
@@ -4662,18 +4815,18 @@ end
|
|
4662
4815
|
#
|
4663
4816
|
# @api private
|
4664
4817
|
#
|
4665
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4818
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#135
|
4666
4819
|
class RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator
|
4667
4820
|
# @api private
|
4668
4821
|
# @return [SequentialEvaluator] a new instance of SequentialEvaluator
|
4669
4822
|
#
|
4670
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4823
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#136
|
4671
4824
|
def initialize(actual, *_arg1); end
|
4672
4825
|
|
4673
4826
|
# @api private
|
4674
4827
|
# @return [Boolean]
|
4675
4828
|
#
|
4676
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4829
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#140
|
4677
4830
|
def matcher_matches?(matcher); end
|
4678
4831
|
end
|
4679
4832
|
|
@@ -4702,51 +4855,57 @@ class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::Bas
|
|
4702
4855
|
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#22
|
4703
4856
|
def failure_message_when_negated; end
|
4704
4857
|
|
4858
|
+
# @api private
|
4859
|
+
# @return [Boolean]
|
4860
|
+
#
|
4861
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#34
|
4862
|
+
def matches?(actual); end
|
4863
|
+
|
4705
4864
|
private
|
4706
4865
|
|
4707
4866
|
# @api private
|
4708
4867
|
#
|
4709
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4868
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#56
|
4710
4869
|
def actual_collection_line; end
|
4711
4870
|
|
4712
4871
|
# @api private
|
4713
4872
|
#
|
4714
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4873
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#137
|
4715
4874
|
def best_solution; end
|
4716
4875
|
|
4717
4876
|
# @api private
|
4718
4877
|
#
|
4719
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4878
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#94
|
4720
4879
|
def convert_actual_to_an_array; end
|
4721
4880
|
|
4722
4881
|
# @api private
|
4723
4882
|
#
|
4724
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4883
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#68
|
4725
4884
|
def describe_collection(collection, surface_descriptions = T.unsafe(nil)); end
|
4726
4885
|
|
4727
4886
|
# @api private
|
4728
4887
|
#
|
4729
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4888
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#52
|
4730
4889
|
def expected_collection_line; end
|
4731
4890
|
|
4732
4891
|
# @api private
|
4733
4892
|
#
|
4734
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4893
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#64
|
4735
4894
|
def extra_elements_line; end
|
4736
4895
|
|
4737
4896
|
# @api private
|
4738
4897
|
#
|
4739
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4898
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#131
|
4740
4899
|
def extra_items; end
|
4741
4900
|
|
4742
4901
|
# @api private
|
4743
4902
|
#
|
4744
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4903
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#44
|
4745
4904
|
def generate_failure_message; end
|
4746
4905
|
|
4747
4906
|
# @api private
|
4748
4907
|
#
|
4749
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4908
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#81
|
4750
4909
|
def match(_expected, _actual); end
|
4751
4910
|
|
4752
4911
|
# This cannot always work (e.g. when dealing with unsortable items,
|
@@ -4757,38 +4916,40 @@ class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::Bas
|
|
4757
4916
|
# @api private
|
4758
4917
|
# @return [Boolean]
|
4759
4918
|
#
|
4760
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4919
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#90
|
4761
4920
|
def match_when_sorted?; end
|
4762
4921
|
|
4763
4922
|
# @api private
|
4764
4923
|
#
|
4765
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4924
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#76
|
4766
4925
|
def message_line(prefix, collection, surface_descriptions = T.unsafe(nil)); end
|
4767
4926
|
|
4768
4927
|
# @api private
|
4769
4928
|
#
|
4770
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4929
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#60
|
4771
4930
|
def missing_elements_line; end
|
4772
4931
|
|
4773
4932
|
# @api private
|
4774
4933
|
#
|
4775
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4934
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#125
|
4776
4935
|
def missing_items; end
|
4777
4936
|
|
4778
4937
|
# @api private
|
4779
4938
|
#
|
4780
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4939
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#141
|
4781
4940
|
def pairings_maximizer; end
|
4782
4941
|
|
4783
4942
|
# @api private
|
4784
4943
|
#
|
4785
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4944
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#104
|
4786
4945
|
def safe_sort(array); end
|
4787
4946
|
|
4947
|
+
# :nocov:
|
4948
|
+
#
|
4788
4949
|
# @api private
|
4789
4950
|
# @return [Boolean]
|
4790
4951
|
#
|
4791
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4952
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#120
|
4792
4953
|
def to_a_disallowed?(object); end
|
4793
4954
|
end
|
4794
4955
|
|
@@ -4823,55 +4984,55 @@ end
|
|
4823
4984
|
# @api private
|
4824
4985
|
# @private
|
4825
4986
|
#
|
4826
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4987
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#188
|
4827
4988
|
class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer
|
4828
4989
|
# @api private
|
4829
4990
|
# @return [PairingsMaximizer] a new instance of PairingsMaximizer
|
4830
4991
|
#
|
4831
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4992
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#225
|
4832
4993
|
def initialize(expected_to_actual_matched_indexes, actual_to_expected_matched_indexes); end
|
4833
4994
|
|
4834
4995
|
# @api private
|
4835
4996
|
#
|
4836
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4997
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223
|
4837
4998
|
def actual_to_expected_matched_indexes; end
|
4838
4999
|
|
4839
5000
|
# @api private
|
4840
5001
|
#
|
4841
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5002
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223
|
4842
5003
|
def expected_to_actual_matched_indexes; end
|
4843
5004
|
|
4844
5005
|
# @api private
|
4845
5006
|
#
|
4846
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5007
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#239
|
4847
5008
|
def find_best_solution; end
|
4848
5009
|
|
4849
5010
|
# @api private
|
4850
5011
|
#
|
4851
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5012
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223
|
4852
5013
|
def solution; end
|
4853
5014
|
|
4854
5015
|
private
|
4855
5016
|
|
4856
5017
|
# @api private
|
4857
5018
|
#
|
4858
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5019
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#301
|
4859
5020
|
def apply_pairing_to(indeterminates, original_matches, other_list_index); end
|
4860
5021
|
|
4861
5022
|
# @api private
|
4862
5023
|
#
|
4863
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5024
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#285
|
4864
5025
|
def best_solution_for_pairing(expected_index, actual_index); end
|
4865
5026
|
|
4866
5027
|
# @api private
|
4867
5028
|
#
|
4868
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5029
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#265
|
4869
5030
|
def categorize_indexes(indexes_to_categorize, other_indexes); end
|
4870
5031
|
|
4871
5032
|
# @api private
|
4872
5033
|
# @return [Boolean]
|
4873
5034
|
#
|
4874
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5035
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#280
|
4875
5036
|
def reciprocal_single_match?(matches, index, other_list); end
|
4876
5037
|
end
|
4877
5038
|
|
@@ -4880,10 +5041,10 @@ end
|
|
4880
5041
|
# @api private
|
4881
5042
|
# @private
|
4882
5043
|
#
|
4883
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5044
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#259
|
4884
5045
|
class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::NullSolution
|
4885
5046
|
class << self
|
4886
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5047
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#260
|
4887
5048
|
def worse_than?(_other); end
|
4888
5049
|
end
|
4889
5050
|
end
|
@@ -4891,23 +5052,23 @@ end
|
|
4891
5052
|
# @api private
|
4892
5053
|
# @private
|
4893
5054
|
#
|
4894
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5055
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190
|
4895
5056
|
class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < ::Struct
|
4896
5057
|
# @api private
|
4897
5058
|
#
|
4898
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5059
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#212
|
4899
5060
|
def +(derived_candidate_solution); end
|
4900
5061
|
|
4901
5062
|
# @api private
|
4902
5063
|
# @return [Boolean]
|
4903
5064
|
#
|
4904
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5065
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#196
|
4905
5066
|
def candidate?; end
|
4906
5067
|
|
4907
5068
|
# @api private
|
4908
5069
|
# @return [Boolean]
|
4909
5070
|
#
|
4910
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5071
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#201
|
4911
5072
|
def ideal?; end
|
4912
5073
|
|
4913
5074
|
# Returns the value of attribute indeterminate_actual_indexes
|
@@ -4956,13 +5117,13 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < ::
|
|
4956
5117
|
|
4957
5118
|
# @api private
|
4958
5119
|
#
|
4959
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5120
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#208
|
4960
5121
|
def unmatched_item_count; end
|
4961
5122
|
|
4962
5123
|
# @api private
|
4963
5124
|
# @return [Boolean]
|
4964
5125
|
#
|
4965
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
5126
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#192
|
4966
5127
|
def worse_than?(other); end
|
4967
5128
|
|
4968
5129
|
class << self
|
@@ -4974,7 +5135,7 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < ::
|
|
4974
5135
|
end
|
4975
5136
|
end
|
4976
5137
|
|
4977
|
-
#
|
5138
|
+
# Abstract class to implement `once`, `at_least` and other
|
4978
5139
|
# count constraints.
|
4979
5140
|
#
|
4980
5141
|
# @api private
|
@@ -5046,19 +5207,21 @@ module RSpec::Matchers::BuiltIn::CountExpectation
|
|
5046
5207
|
|
5047
5208
|
# @api private
|
5048
5209
|
#
|
5049
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5210
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#122
|
5050
5211
|
def count_constraint_to_number(n); end
|
5051
5212
|
|
5052
5213
|
# @api private
|
5053
5214
|
#
|
5054
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5215
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#141
|
5055
5216
|
def count_expectation_description; end
|
5056
5217
|
|
5057
5218
|
# @api private
|
5058
5219
|
#
|
5059
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5220
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#145
|
5060
5221
|
def count_failure_reason(action); end
|
5061
5222
|
|
5223
|
+
# :nocov:
|
5224
|
+
#
|
5062
5225
|
# @api private
|
5063
5226
|
# @return [Boolean]
|
5064
5227
|
#
|
@@ -5068,46 +5231,46 @@ module RSpec::Matchers::BuiltIn::CountExpectation
|
|
5068
5231
|
# @api private
|
5069
5232
|
# @return [Boolean]
|
5070
5233
|
#
|
5071
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5234
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#71
|
5072
5235
|
def expected_count_matches?(actual_count); end
|
5073
5236
|
|
5074
5237
|
# @api private
|
5075
5238
|
# @return [Boolean]
|
5076
5239
|
#
|
5077
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5240
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#79
|
5078
5241
|
def has_expected_count?; end
|
5079
5242
|
|
5080
5243
|
# @api private
|
5081
5244
|
#
|
5082
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5245
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#159
|
5083
5246
|
def human_readable_count(count); end
|
5084
5247
|
|
5085
5248
|
# @api private
|
5086
5249
|
#
|
5087
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5250
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#150
|
5088
5251
|
def human_readable_expectation_type; end
|
5089
5252
|
|
5090
5253
|
# @api private
|
5091
5254
|
# @raise [ArgumentError]
|
5092
5255
|
#
|
5093
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5256
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#102
|
5094
5257
|
def raise_impossible_count_expectation(count); end
|
5095
5258
|
|
5096
5259
|
# @api private
|
5097
5260
|
# @raise [ArgumentError]
|
5098
5261
|
#
|
5099
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5262
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#111
|
5100
5263
|
def raise_unsupported_count_expectation; end
|
5101
5264
|
|
5102
5265
|
# @api private
|
5103
5266
|
#
|
5104
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5267
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#83
|
5105
5268
|
def set_expected_count(relativity, n); end
|
5106
5269
|
|
5107
5270
|
# @api private
|
5108
5271
|
# @return [Boolean]
|
5109
5272
|
#
|
5110
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#
|
5273
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#134
|
5111
5274
|
def unsupported_count_expectation?(relativity); end
|
5112
5275
|
end
|
5113
5276
|
|
@@ -5188,44 +5351,50 @@ class RSpec::Matchers::BuiltIn::DynamicPredicate < ::RSpec::Matchers::BuiltIn::B
|
|
5188
5351
|
|
5189
5352
|
# @api private
|
5190
5353
|
#
|
5191
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5354
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#126
|
5192
5355
|
def expectation_of(value); end
|
5193
5356
|
|
5194
5357
|
# @api private
|
5195
5358
|
#
|
5196
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5359
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#121
|
5197
5360
|
def failure_message_expecting(value); end
|
5198
5361
|
|
5199
5362
|
# @api private
|
5200
5363
|
#
|
5201
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5364
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#142
|
5202
5365
|
def failure_to_respond_explanation; end
|
5203
5366
|
|
5204
5367
|
# @api private
|
5205
5368
|
#
|
5206
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5369
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#117
|
5207
5370
|
def method_description; end
|
5208
5371
|
|
5209
5372
|
# @api private
|
5210
5373
|
# @return [Boolean]
|
5211
5374
|
#
|
5212
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5375
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#88
|
5376
|
+
def methods_include?(method); end
|
5377
|
+
|
5378
|
+
# @api private
|
5379
|
+
# @return [Boolean]
|
5380
|
+
#
|
5381
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#68
|
5213
5382
|
def predicate_accessible?; end
|
5214
5383
|
|
5215
5384
|
# @api private
|
5216
5385
|
# @return [Boolean]
|
5217
5386
|
#
|
5218
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5387
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#101
|
5219
5388
|
def predicate_matches?(value = T.unsafe(nil)); end
|
5220
5389
|
|
5221
5390
|
# @api private
|
5222
5391
|
#
|
5223
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5392
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#97
|
5224
5393
|
def predicate_method_name; end
|
5225
5394
|
|
5226
5395
|
# @api private
|
5227
5396
|
#
|
5228
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5397
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#93
|
5229
5398
|
def predicate_result; end
|
5230
5399
|
|
5231
5400
|
# :nocov:
|
@@ -5233,17 +5402,25 @@ class RSpec::Matchers::BuiltIn::DynamicPredicate < ::RSpec::Matchers::BuiltIn::B
|
|
5233
5402
|
# @api private
|
5234
5403
|
# @return [Boolean]
|
5235
5404
|
#
|
5236
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5405
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#84
|
5237
5406
|
def private_predicate?; end
|
5238
5407
|
|
5408
|
+
# :nocov:
|
5409
|
+
#
|
5239
5410
|
# @api private
|
5411
|
+
# @return [Boolean]
|
5240
5412
|
#
|
5241
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5242
|
-
def
|
5413
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#62
|
5414
|
+
def really_responds_to?(method); end
|
5243
5415
|
|
5244
5416
|
# @api private
|
5245
5417
|
#
|
5246
5418
|
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#109
|
5419
|
+
def root; end
|
5420
|
+
|
5421
|
+
# @api private
|
5422
|
+
#
|
5423
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#136
|
5247
5424
|
def validity_message; end
|
5248
5425
|
end
|
5249
5426
|
|
@@ -5279,13 +5456,13 @@ class RSpec::Matchers::BuiltIn::Eq < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
5279
5456
|
# @api private
|
5280
5457
|
# @return [String]
|
5281
5458
|
#
|
5282
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#
|
5459
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#26
|
5283
5460
|
def description; end
|
5284
5461
|
|
5285
5462
|
# @api private
|
5286
5463
|
# @return [Boolean]
|
5287
5464
|
#
|
5288
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#
|
5465
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#32
|
5289
5466
|
def diffable?; end
|
5290
5467
|
|
5291
5468
|
# @api private
|
@@ -5297,14 +5474,14 @@ class RSpec::Matchers::BuiltIn::Eq < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
5297
5474
|
# @api private
|
5298
5475
|
# @return [String]
|
5299
5476
|
#
|
5300
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#
|
5477
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#20
|
5301
5478
|
def failure_message_when_negated; end
|
5302
5479
|
|
5303
5480
|
private
|
5304
5481
|
|
5305
5482
|
# @api private
|
5306
5483
|
#
|
5307
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#
|
5484
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#38
|
5308
5485
|
def match(expected, actual); end
|
5309
5486
|
end
|
5310
5487
|
|
@@ -5318,7 +5495,7 @@ class RSpec::Matchers::BuiltIn::Eql < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
5318
5495
|
# @api private
|
5319
5496
|
# @return [Boolean]
|
5320
5497
|
#
|
5321
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#
|
5498
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#26
|
5322
5499
|
def diffable?; end
|
5323
5500
|
|
5324
5501
|
# @api private
|
@@ -5330,14 +5507,14 @@ class RSpec::Matchers::BuiltIn::Eql < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
5330
5507
|
# @api private
|
5331
5508
|
# @return [String]
|
5332
5509
|
#
|
5333
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#
|
5510
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#20
|
5334
5511
|
def failure_message_when_negated; end
|
5335
5512
|
|
5336
5513
|
private
|
5337
5514
|
|
5338
5515
|
# @api private
|
5339
5516
|
#
|
5340
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#
|
5517
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#32
|
5341
5518
|
def match(expected, actual); end
|
5342
5519
|
end
|
5343
5520
|
|
@@ -5496,19 +5673,19 @@ end
|
|
5496
5673
|
#
|
5497
5674
|
# @api private
|
5498
5675
|
#
|
5499
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5676
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#152
|
5500
5677
|
class RSpec::Matchers::BuiltIn::Has < ::RSpec::Matchers::BuiltIn::DynamicPredicate
|
5501
5678
|
private
|
5502
5679
|
|
5503
5680
|
# @api private
|
5504
5681
|
#
|
5505
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5682
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#156
|
5506
5683
|
def predicate; end
|
5507
5684
|
end
|
5508
5685
|
|
5509
5686
|
# @api private
|
5510
5687
|
#
|
5511
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5688
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#154
|
5512
5689
|
RSpec::Matchers::BuiltIn::Has::REGEX = T.let(T.unsafe(nil), Regexp)
|
5513
5690
|
|
5514
5691
|
# Provides the implementation for `have_attributes`.
|
@@ -5622,6 +5799,7 @@ class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatche
|
|
5622
5799
|
include ::RSpec::Matchers::BuiltIn::CountExpectation
|
5623
5800
|
|
5624
5801
|
# @api private
|
5802
|
+
# @raise [ArgumentError]
|
5625
5803
|
# @return [Include] a new instance of Include
|
5626
5804
|
#
|
5627
5805
|
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#15
|
@@ -5630,25 +5808,25 @@ class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatche
|
|
5630
5808
|
# @api private
|
5631
5809
|
# @return [String]
|
5632
5810
|
#
|
5633
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5811
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#44
|
5634
5812
|
def description; end
|
5635
5813
|
|
5636
5814
|
# @api private
|
5637
5815
|
# @return [Boolean]
|
5638
5816
|
#
|
5639
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5817
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#62
|
5640
5818
|
def diffable?; end
|
5641
5819
|
|
5642
5820
|
# @api private
|
5643
5821
|
# @return [Boolean]
|
5644
5822
|
#
|
5645
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5823
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#33
|
5646
5824
|
def does_not_match?(actual); end
|
5647
5825
|
|
5648
5826
|
# @api private
|
5649
5827
|
# @return [Array, Hash]
|
5650
5828
|
#
|
5651
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5829
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#68
|
5652
5830
|
def expected; end
|
5653
5831
|
|
5654
5832
|
# @api private
|
@@ -5660,19 +5838,19 @@ class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatche
|
|
5660
5838
|
# @api private
|
5661
5839
|
# @return [String]
|
5662
5840
|
#
|
5663
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5841
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#50
|
5664
5842
|
def failure_message; end
|
5665
5843
|
|
5666
5844
|
# @api private
|
5667
5845
|
# @return [String]
|
5668
5846
|
#
|
5669
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5847
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#56
|
5670
5848
|
def failure_message_when_negated; end
|
5671
5849
|
|
5672
5850
|
# @api private
|
5673
5851
|
# @return [Boolean]
|
5674
5852
|
#
|
5675
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5853
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#22
|
5676
5854
|
def matches?(actual); end
|
5677
5855
|
|
5678
5856
|
private
|
@@ -5680,85 +5858,87 @@ class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatche
|
|
5680
5858
|
# @api private
|
5681
5859
|
# @return [Boolean]
|
5682
5860
|
#
|
5683
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5861
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#168
|
5684
5862
|
def actual_collection_includes?(expected_item); end
|
5685
5863
|
|
5686
5864
|
# @api private
|
5687
5865
|
# @return [Boolean]
|
5688
5866
|
#
|
5689
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5867
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#154
|
5690
5868
|
def actual_hash_has_key?(expected_key); end
|
5691
5869
|
|
5692
5870
|
# @api private
|
5693
5871
|
# @return [Boolean]
|
5694
5872
|
#
|
5695
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5873
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#142
|
5696
5874
|
def actual_hash_includes?(expected_key, expected_value); end
|
5697
5875
|
|
5698
5876
|
# @api private
|
5699
5877
|
# @return [Boolean]
|
5700
5878
|
#
|
5701
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5879
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#78
|
5702
5880
|
def check_actual?(actual); end
|
5703
5881
|
|
5704
5882
|
# @api private
|
5705
5883
|
# @return [Boolean]
|
5706
5884
|
#
|
5707
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5885
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#84
|
5708
5886
|
def check_expected_count?; end
|
5709
5887
|
|
5710
5888
|
# @api private
|
5711
5889
|
# @return [Boolean]
|
5712
5890
|
#
|
5713
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5891
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#150
|
5714
5892
|
def comparing_hash_keys?(expected_item); end
|
5715
5893
|
|
5716
5894
|
# @api private
|
5717
5895
|
# @return [Boolean]
|
5718
5896
|
#
|
5719
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5897
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#138
|
5720
5898
|
def comparing_hash_to_a_subset?(expected_item); end
|
5721
5899
|
|
5722
5900
|
# @api private
|
5723
5901
|
# @return [Boolean]
|
5724
5902
|
#
|
5725
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5903
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#212
|
5726
5904
|
def convert_to_hash?(obj); end
|
5727
5905
|
|
5906
|
+
# :nocov:
|
5907
|
+
#
|
5728
5908
|
# @api private
|
5729
5909
|
#
|
5730
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5910
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#185
|
5731
5911
|
def count_enumerable(expected_item); end
|
5732
5912
|
|
5733
5913
|
# @api private
|
5734
5914
|
#
|
5735
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5915
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#190
|
5736
5916
|
def count_inclusions; end
|
5737
5917
|
|
5738
5918
|
# @api private
|
5739
5919
|
# @return [Boolean]
|
5740
5920
|
#
|
5741
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5921
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#202
|
5742
5922
|
def diff_would_wrongly_highlight_matched_item?; end
|
5743
5923
|
|
5744
5924
|
# @api private
|
5745
5925
|
#
|
5746
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5926
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#121
|
5747
5927
|
def excluded_from_actual; end
|
5748
5928
|
|
5749
5929
|
# @api private
|
5750
5930
|
#
|
5751
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5931
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#96
|
5752
5932
|
def format_failure_message(preposition); end
|
5753
5933
|
|
5754
5934
|
# @api private
|
5755
5935
|
#
|
5756
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5936
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#116
|
5757
5937
|
def perform_match(&block); end
|
5758
5938
|
|
5759
5939
|
# @api private
|
5760
5940
|
#
|
5761
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#
|
5941
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#107
|
5762
5942
|
def readable_list_of(items); end
|
5763
5943
|
end
|
5764
5944
|
|
@@ -5787,6 +5967,12 @@ class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
5787
5967
|
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#25
|
5788
5968
|
def diffable?; end
|
5789
5969
|
|
5970
|
+
# @api private
|
5971
|
+
# @return [String]
|
5972
|
+
#
|
5973
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#38
|
5974
|
+
def failure_message; end
|
5975
|
+
|
5790
5976
|
# Used to specify the captures we match against
|
5791
5977
|
#
|
5792
5978
|
# @api private
|
@@ -5800,17 +5986,17 @@ class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
5800
5986
|
# @api private
|
5801
5987
|
# @return [Boolean]
|
5802
5988
|
#
|
5803
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#
|
5989
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#57
|
5804
5990
|
def can_safely_call_match?(expected, actual); end
|
5805
5991
|
|
5806
5992
|
# @api private
|
5807
5993
|
#
|
5808
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#
|
5994
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#49
|
5809
5995
|
def match(expected, actual); end
|
5810
5996
|
|
5811
5997
|
# @api private
|
5812
5998
|
#
|
5813
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#
|
5999
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#64
|
5814
6000
|
def match_captures(expected, actual); end
|
5815
6001
|
end
|
5816
6002
|
|
@@ -5826,13 +6012,13 @@ end
|
|
5826
6012
|
|
5827
6013
|
# @private
|
5828
6014
|
#
|
5829
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
6015
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#128
|
5830
6016
|
module RSpec::Matchers::BuiltIn::NullCapture
|
5831
6017
|
class << self
|
5832
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
6018
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#133
|
5833
6019
|
def capture(_block); end
|
5834
6020
|
|
5835
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
6021
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#129
|
5836
6022
|
def name; end
|
5837
6023
|
end
|
5838
6024
|
end
|
@@ -5993,6 +6179,14 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
5993
6179
|
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#93
|
5994
6180
|
def supports_block_expectations?; end
|
5995
6181
|
|
6182
|
+
# Indicates this matcher matches against a block only.
|
6183
|
+
#
|
6184
|
+
# @api private
|
6185
|
+
# @return [False]
|
6186
|
+
#
|
6187
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#100
|
6188
|
+
def supports_value_expectations?; end
|
6189
|
+
|
5996
6190
|
# Tells the matcher to match against stderr.
|
5997
6191
|
# Works only when the main Ruby process prints to stderr
|
5998
6192
|
#
|
@@ -6031,23 +6225,23 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
6031
6225
|
|
6032
6226
|
# @api private
|
6033
6227
|
#
|
6034
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
6228
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#121
|
6035
6229
|
def actual_output_description; end
|
6036
6230
|
|
6037
6231
|
# @api private
|
6038
6232
|
# @return [Boolean]
|
6039
6233
|
#
|
6040
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
6234
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#106
|
6041
6235
|
def captured?; end
|
6042
6236
|
|
6043
6237
|
# @api private
|
6044
6238
|
#
|
6045
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
6239
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#116
|
6046
6240
|
def negative_failure_reason; end
|
6047
6241
|
|
6048
6242
|
# @api private
|
6049
6243
|
#
|
6050
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#
|
6244
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#110
|
6051
6245
|
def positive_failure_reason; end
|
6052
6246
|
end
|
6053
6247
|
|
@@ -6073,163 +6267,176 @@ class RSpec::Matchers::BuiltIn::RaiseError
|
|
6073
6267
|
# @api private
|
6074
6268
|
# @return [RaiseError] a new instance of RaiseError
|
6075
6269
|
#
|
6076
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6270
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#22
|
6077
6271
|
def initialize(expected_error_or_message, expected_message, &block); end
|
6078
6272
|
|
6079
6273
|
# @api private
|
6080
6274
|
# @return [String]
|
6081
6275
|
#
|
6082
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6276
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#117
|
6083
6277
|
def description; end
|
6084
6278
|
|
6085
6279
|
# @api private
|
6086
6280
|
# @private
|
6087
6281
|
# @return [Boolean]
|
6088
6282
|
#
|
6089
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6283
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#83
|
6090
6284
|
def does_not_match?(given_proc); end
|
6091
6285
|
|
6092
6286
|
# @api private
|
6287
|
+
# @private
|
6093
6288
|
# @return [Boolean]
|
6094
6289
|
#
|
6095
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6290
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#99
|
6096
6291
|
def expects_call_stack_jump?; end
|
6097
6292
|
|
6098
6293
|
# @api private
|
6099
6294
|
# @return [String]
|
6100
6295
|
#
|
6101
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6296
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#105
|
6102
6297
|
def failure_message; end
|
6103
6298
|
|
6104
6299
|
# @api private
|
6105
6300
|
# @return [String]
|
6106
6301
|
#
|
6107
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6302
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#111
|
6108
6303
|
def failure_message_when_negated; end
|
6109
6304
|
|
6110
6305
|
# @api private
|
6111
6306
|
# @private
|
6112
6307
|
# @return [Boolean]
|
6113
6308
|
#
|
6114
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6309
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#52
|
6115
6310
|
def matches?(given_proc, negative_expectation = T.unsafe(nil), &block); end
|
6116
6311
|
|
6117
6312
|
# @api private
|
6118
6313
|
# @private
|
6119
6314
|
# @return [Boolean]
|
6120
6315
|
#
|
6121
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6316
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#89
|
6122
6317
|
def supports_block_expectations?; end
|
6123
6318
|
|
6319
|
+
# @api private
|
6320
|
+
# @private
|
6321
|
+
# @return [Boolean]
|
6322
|
+
#
|
6323
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#94
|
6324
|
+
def supports_value_expectations?; end
|
6325
|
+
|
6124
6326
|
# Specifies the expected error message.
|
6125
6327
|
#
|
6126
6328
|
# @api public
|
6127
6329
|
#
|
6128
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6330
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#43
|
6129
6331
|
def with_message(expected_message); end
|
6130
6332
|
|
6131
6333
|
private
|
6132
6334
|
|
6335
|
+
# @api private
|
6336
|
+
#
|
6337
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#123
|
6338
|
+
def actual_error_message; end
|
6339
|
+
|
6133
6340
|
# @api private
|
6134
6341
|
# @return [Boolean]
|
6135
6342
|
#
|
6136
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6343
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#137
|
6137
6344
|
def block_matches?; end
|
6138
6345
|
|
6139
6346
|
# @api private
|
6140
6347
|
# @return [Boolean]
|
6141
6348
|
#
|
6142
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6349
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#133
|
6143
6350
|
def error_and_message_match?; end
|
6144
6351
|
|
6145
6352
|
# @api private
|
6146
6353
|
#
|
6147
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6354
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#145
|
6148
6355
|
def eval_block; end
|
6149
6356
|
|
6150
6357
|
# @api private
|
6151
6358
|
# @return [Boolean]
|
6152
6359
|
#
|
6153
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6360
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#129
|
6154
6361
|
def expectation_matched?; end
|
6155
6362
|
|
6156
6363
|
# @api private
|
6157
6364
|
#
|
6158
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6365
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#226
|
6159
6366
|
def expected_error; end
|
6160
6367
|
|
6161
6368
|
# @api private
|
6162
6369
|
# @return [Boolean]
|
6163
6370
|
#
|
6164
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6371
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#257
|
6165
6372
|
def expecting_specific_exception?; end
|
6166
6373
|
|
6167
6374
|
# @api private
|
6168
6375
|
#
|
6169
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6376
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#241
|
6170
6377
|
def format_backtrace(backtrace); end
|
6171
6378
|
|
6172
6379
|
# @api private
|
6173
6380
|
#
|
6174
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6381
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#246
|
6175
6382
|
def given_error; end
|
6176
6383
|
|
6177
6384
|
# @api private
|
6178
6385
|
#
|
6179
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6386
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#176
|
6180
6387
|
def handle_warning(message); end
|
6181
6388
|
|
6182
6389
|
# @api private
|
6183
6390
|
#
|
6184
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6391
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#261
|
6185
6392
|
def raise_message_already_set; end
|
6186
6393
|
|
6187
6394
|
# @api private
|
6188
6395
|
# @return [Boolean]
|
6189
6396
|
#
|
6190
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6397
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#141
|
6191
6398
|
def ready_to_eval_block?; end
|
6192
6399
|
|
6193
6400
|
# @api private
|
6194
6401
|
#
|
6195
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6402
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#155
|
6196
6403
|
def verify_message; end
|
6197
6404
|
|
6198
6405
|
# @api private
|
6199
6406
|
#
|
6200
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6407
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#188
|
6201
6408
|
def warn_about_bare_error!; end
|
6202
6409
|
|
6203
6410
|
# @api private
|
6204
6411
|
# @return [Boolean]
|
6205
6412
|
#
|
6206
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6413
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#180
|
6207
6414
|
def warn_about_bare_error?; end
|
6208
6415
|
|
6209
6416
|
# @api private
|
6210
6417
|
#
|
6211
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6418
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#214
|
6212
6419
|
def warn_about_negative_false_positive!(expression); end
|
6213
6420
|
|
6214
6421
|
# @api private
|
6215
6422
|
#
|
6216
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6423
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#201
|
6217
6424
|
def warn_about_nil_error!; end
|
6218
6425
|
|
6219
6426
|
# @api private
|
6220
6427
|
# @return [Boolean]
|
6221
6428
|
#
|
6222
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6429
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#184
|
6223
6430
|
def warn_about_nil_error?; end
|
6224
6431
|
|
6225
6432
|
# @api private
|
6226
6433
|
#
|
6227
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6434
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#160
|
6228
6435
|
def warn_for_negative_false_positives!; end
|
6229
6436
|
|
6230
6437
|
# @api private
|
6231
6438
|
#
|
6232
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6439
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#266
|
6233
6440
|
def warning; end
|
6234
6441
|
end
|
6235
6442
|
|
@@ -6238,21 +6445,25 @@ end
|
|
6238
6445
|
# passed in a different way. It's an Object, not a Module, since Module's `===`
|
6239
6446
|
# does not evaluate to true when compared to itself.
|
6240
6447
|
#
|
6448
|
+
# Note; this _is_ the default value supplied for expected_error_or_message, but
|
6449
|
+
# because there are two method-calls involved, that default is actually supplied
|
6450
|
+
# in the definition of the _matcher_ method, `RSpec::Matchers#raise_error`
|
6451
|
+
#
|
6241
6452
|
# @api private
|
6242
6453
|
#
|
6243
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#
|
6454
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#20
|
6244
6455
|
RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue = T.let(T.unsafe(nil), Object)
|
6245
6456
|
|
6246
6457
|
# Used to wrap match data and make it reliable for 1.8.7
|
6247
6458
|
#
|
6248
6459
|
# @api private
|
6249
6460
|
#
|
6250
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#
|
6461
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#84
|
6251
6462
|
class RSpec::Matchers::BuiltIn::ReliableMatchData
|
6252
6463
|
# @api private
|
6253
6464
|
# @return [ReliableMatchData] a new instance of ReliableMatchData
|
6254
6465
|
#
|
6255
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#
|
6466
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#85
|
6256
6467
|
def initialize(match_data); end
|
6257
6468
|
|
6258
6469
|
# returns an array of captures from the match data
|
@@ -6260,7 +6471,7 @@ class RSpec::Matchers::BuiltIn::ReliableMatchData
|
|
6260
6471
|
# @api private
|
6261
6472
|
# @return Array
|
6262
6473
|
#
|
6263
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#
|
6474
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#110
|
6264
6475
|
def captures; end
|
6265
6476
|
|
6266
6477
|
# Returns match data names for named captures
|
@@ -6268,14 +6479,14 @@ class RSpec::Matchers::BuiltIn::ReliableMatchData
|
|
6268
6479
|
# @api private
|
6269
6480
|
# @return Array
|
6270
6481
|
#
|
6271
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#
|
6482
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#102
|
6272
6483
|
def names; end
|
6273
6484
|
|
6274
6485
|
protected
|
6275
6486
|
|
6276
6487
|
# @api private
|
6277
6488
|
#
|
6278
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#
|
6489
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#116
|
6279
6490
|
def match_data; end
|
6280
6491
|
end
|
6281
6492
|
|
@@ -6522,6 +6733,8 @@ class RSpec::Matchers::BuiltIn::Satisfy < ::RSpec::Matchers::BuiltIn::BaseMatche
|
|
6522
6733
|
|
6523
6734
|
private
|
6524
6735
|
|
6736
|
+
# :nocov:
|
6737
|
+
#
|
6525
6738
|
# @api private
|
6526
6739
|
#
|
6527
6740
|
# source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#40
|
@@ -6537,83 +6750,90 @@ end
|
|
6537
6750
|
#
|
6538
6751
|
# @api private
|
6539
6752
|
#
|
6540
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6753
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#181
|
6541
6754
|
class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
6542
6755
|
# @api private
|
6543
6756
|
# @return [SpecificValuesChange] a new instance of SpecificValuesChange
|
6544
6757
|
#
|
6545
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6758
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#185
|
6546
6759
|
def initialize(change_details, from, to); end
|
6547
6760
|
|
6548
6761
|
# @api private
|
6549
6762
|
# @private
|
6550
6763
|
#
|
6551
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6764
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#197
|
6552
6765
|
def description; end
|
6553
6766
|
|
6554
6767
|
# @api private
|
6555
6768
|
# @private
|
6556
6769
|
#
|
6557
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6770
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#202
|
6558
6771
|
def failure_message; end
|
6559
6772
|
|
6560
6773
|
# @api private
|
6561
6774
|
# @private
|
6562
6775
|
# @return [Boolean]
|
6563
6776
|
#
|
6564
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6777
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#192
|
6565
6778
|
def matches?(event_proc); end
|
6566
6779
|
|
6567
6780
|
# @api private
|
6568
6781
|
# @private
|
6569
6782
|
# @return [Boolean]
|
6570
6783
|
#
|
6571
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6784
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#210
|
6572
6785
|
def supports_block_expectations?; end
|
6573
6786
|
|
6787
|
+
# @api private
|
6788
|
+
# @private
|
6789
|
+
# @return [Boolean]
|
6790
|
+
#
|
6791
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#215
|
6792
|
+
def supports_value_expectations?; end
|
6793
|
+
|
6574
6794
|
private
|
6575
6795
|
|
6576
6796
|
# @api private
|
6577
6797
|
#
|
6578
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6798
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#244
|
6579
6799
|
def after_value_failure; end
|
6580
6800
|
|
6581
6801
|
# @api private
|
6582
6802
|
#
|
6583
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6803
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#238
|
6584
6804
|
def before_value_failure; end
|
6585
6805
|
|
6586
6806
|
# @api private
|
6587
6807
|
#
|
6588
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6808
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#255
|
6589
6809
|
def did_change_failure; end
|
6590
6810
|
|
6591
6811
|
# @api private
|
6592
6812
|
#
|
6593
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6813
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#250
|
6594
6814
|
def did_not_change_failure; end
|
6595
6815
|
|
6596
6816
|
# @api private
|
6597
6817
|
# @return [Boolean]
|
6598
6818
|
#
|
6599
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6819
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#234
|
6600
6820
|
def matches_after?; end
|
6601
6821
|
|
6602
6822
|
# @api private
|
6603
6823
|
#
|
6604
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6824
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#261
|
6605
6825
|
def not_given_a_block_failure; end
|
6606
6826
|
|
6607
6827
|
# @api private
|
6608
6828
|
#
|
6609
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6829
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#221
|
6610
6830
|
def perform_change(event_proc); end
|
6611
6831
|
end
|
6612
6832
|
|
6613
6833
|
# @api private
|
6614
6834
|
# @private
|
6615
6835
|
#
|
6616
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6836
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#183
|
6617
6837
|
RSpec::Matchers::BuiltIn::SpecificValuesChange::MATCH_ANYTHING = BasicObject
|
6618
6838
|
|
6619
6839
|
# For RSpec 3.1, the base class was named `StartAndEndWith`. For SemVer reasons,
|
@@ -6716,7 +6936,7 @@ class RSpec::Matchers::BuiltIn::ThrowSymbol
|
|
6716
6936
|
# @api private
|
6717
6937
|
# @return [Boolean]
|
6718
6938
|
#
|
6719
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#
|
6939
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#103
|
6720
6940
|
def expects_call_stack_jump?; end
|
6721
6941
|
|
6722
6942
|
# @api private
|
@@ -6746,26 +6966,32 @@ class RSpec::Matchers::BuiltIn::ThrowSymbol
|
|
6746
6966
|
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#93
|
6747
6967
|
def supports_block_expectations?; end
|
6748
6968
|
|
6969
|
+
# @api private
|
6970
|
+
# @return [Boolean]
|
6971
|
+
#
|
6972
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#98
|
6973
|
+
def supports_value_expectations?; end
|
6974
|
+
|
6749
6975
|
private
|
6750
6976
|
|
6751
6977
|
# @api private
|
6752
6978
|
#
|
6753
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#
|
6979
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#109
|
6754
6980
|
def actual_result; end
|
6755
6981
|
|
6756
6982
|
# @api private
|
6757
6983
|
#
|
6758
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#
|
6984
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#118
|
6759
6985
|
def caught; end
|
6760
6986
|
|
6761
6987
|
# @api private
|
6762
6988
|
#
|
6763
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#
|
6989
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#114
|
6764
6990
|
def expected(symbol_desc = T.unsafe(nil)); end
|
6765
6991
|
|
6766
6992
|
# @api private
|
6767
6993
|
#
|
6768
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#
|
6994
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#122
|
6769
6995
|
def throw_description(symbol, arg); end
|
6770
6996
|
end
|
6771
6997
|
|
@@ -6811,11 +7037,18 @@ class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseM
|
|
6811
7037
|
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#128
|
6812
7038
|
def supports_block_expectations?; end
|
6813
7039
|
|
7040
|
+
# @api private
|
7041
|
+
# @private
|
7042
|
+
# @return [Boolean]
|
7043
|
+
#
|
7044
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#133
|
7045
|
+
def supports_value_expectations?; end
|
7046
|
+
|
6814
7047
|
private
|
6815
7048
|
|
6816
7049
|
# @api private
|
6817
7050
|
#
|
6818
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7051
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#139
|
6819
7052
|
def failure_reason; end
|
6820
7053
|
end
|
6821
7054
|
|
@@ -6899,67 +7132,74 @@ end
|
|
6899
7132
|
#
|
6900
7133
|
# @api private
|
6901
7134
|
#
|
6902
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7135
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#296
|
6903
7136
|
class RSpec::Matchers::BuiltIn::YieldSuccessiveArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
6904
7137
|
# @api private
|
6905
7138
|
# @return [YieldSuccessiveArgs] a new instance of YieldSuccessiveArgs
|
6906
7139
|
#
|
6907
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7140
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#297
|
6908
7141
|
def initialize(*args); end
|
6909
7142
|
|
6910
7143
|
# @api private
|
6911
7144
|
# @private
|
6912
7145
|
#
|
6913
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7146
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#337
|
6914
7147
|
def description; end
|
6915
7148
|
|
6916
7149
|
# @api private
|
6917
7150
|
# @return [Boolean]
|
6918
7151
|
#
|
6919
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7152
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#320
|
6920
7153
|
def does_not_match?(block); end
|
6921
7154
|
|
6922
7155
|
# @api private
|
6923
7156
|
# @private
|
6924
7157
|
#
|
6925
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7158
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#325
|
6926
7159
|
def failure_message; end
|
6927
7160
|
|
6928
7161
|
# @api private
|
6929
7162
|
# @private
|
6930
7163
|
#
|
6931
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7164
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#331
|
6932
7165
|
def failure_message_when_negated; end
|
6933
7166
|
|
6934
7167
|
# @api private
|
6935
7168
|
# @private
|
6936
7169
|
# @return [Boolean]
|
6937
7170
|
#
|
6938
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7171
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#302
|
6939
7172
|
def matches?(block); end
|
6940
7173
|
|
6941
7174
|
# @api private
|
6942
7175
|
# @private
|
6943
7176
|
# @return [Boolean]
|
6944
7177
|
#
|
6945
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7178
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#342
|
6946
7179
|
def supports_block_expectations?; end
|
6947
7180
|
|
7181
|
+
# @api private
|
7182
|
+
# @private
|
7183
|
+
# @return [Boolean]
|
7184
|
+
#
|
7185
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#347
|
7186
|
+
def supports_value_expectations?; end
|
7187
|
+
|
6948
7188
|
private
|
6949
7189
|
|
6950
7190
|
# @api private
|
6951
7191
|
#
|
6952
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7192
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#353
|
6953
7193
|
def expected_arg_description; end
|
6954
7194
|
|
6955
7195
|
# @api private
|
6956
7196
|
#
|
6957
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7197
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#365
|
6958
7198
|
def negative_failure_reason; end
|
6959
7199
|
|
6960
7200
|
# @api private
|
6961
7201
|
#
|
6962
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7202
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#357
|
6963
7203
|
def positive_failure_reason; end
|
6964
7204
|
end
|
6965
7205
|
|
@@ -6968,80 +7208,87 @@ end
|
|
6968
7208
|
#
|
6969
7209
|
# @api private
|
6970
7210
|
#
|
6971
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7211
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#199
|
6972
7212
|
class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
6973
7213
|
# @api private
|
6974
7214
|
# @return [YieldWithArgs] a new instance of YieldWithArgs
|
6975
7215
|
#
|
6976
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7216
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#200
|
6977
7217
|
def initialize(*args); end
|
6978
7218
|
|
6979
7219
|
# @api private
|
6980
7220
|
# @private
|
6981
7221
|
#
|
6982
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7222
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#233
|
6983
7223
|
def description; end
|
6984
7224
|
|
6985
7225
|
# @api private
|
6986
7226
|
# @private
|
6987
7227
|
# @return [Boolean]
|
6988
7228
|
#
|
6989
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7229
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#218
|
6990
7230
|
def does_not_match?(block); end
|
6991
7231
|
|
6992
7232
|
# @api private
|
6993
7233
|
# @private
|
6994
7234
|
#
|
6995
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7235
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#223
|
6996
7236
|
def failure_message; end
|
6997
7237
|
|
6998
7238
|
# @api private
|
6999
7239
|
# @private
|
7000
7240
|
#
|
7001
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7241
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#228
|
7002
7242
|
def failure_message_when_negated; end
|
7003
7243
|
|
7004
7244
|
# @api private
|
7005
7245
|
# @private
|
7006
7246
|
# @return [Boolean]
|
7007
7247
|
#
|
7008
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7248
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#205
|
7009
7249
|
def matches?(block); end
|
7010
7250
|
|
7011
7251
|
# @api private
|
7012
7252
|
# @private
|
7013
7253
|
# @return [Boolean]
|
7014
7254
|
#
|
7015
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7255
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#240
|
7016
7256
|
def supports_block_expectations?; end
|
7017
7257
|
|
7258
|
+
# @api private
|
7259
|
+
# @private
|
7260
|
+
# @return [Boolean]
|
7261
|
+
#
|
7262
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#245
|
7263
|
+
def supports_value_expectations?; end
|
7264
|
+
|
7018
7265
|
private
|
7019
7266
|
|
7020
7267
|
# @api private
|
7021
7268
|
# @return [Boolean]
|
7022
7269
|
#
|
7023
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7270
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#288
|
7024
7271
|
def all_args_match?; end
|
7025
7272
|
|
7026
7273
|
# @api private
|
7027
7274
|
# @return [Boolean]
|
7028
7275
|
#
|
7029
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7276
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#273
|
7030
7277
|
def args_currently_match?; end
|
7031
7278
|
|
7032
7279
|
# @api private
|
7033
7280
|
#
|
7034
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7281
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#257
|
7035
7282
|
def expected_arg_description; end
|
7036
7283
|
|
7037
7284
|
# @api private
|
7038
7285
|
#
|
7039
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7286
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#261
|
7040
7287
|
def negative_failure_reason; end
|
7041
7288
|
|
7042
7289
|
# @api private
|
7043
7290
|
#
|
7044
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7291
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#251
|
7045
7292
|
def positive_failure_reason; end
|
7046
7293
|
end
|
7047
7294
|
|
@@ -7050,51 +7297,58 @@ end
|
|
7050
7297
|
#
|
7051
7298
|
# @api private
|
7052
7299
|
#
|
7053
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7300
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#149
|
7054
7301
|
class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
7055
7302
|
# @api private
|
7056
7303
|
# @private
|
7057
7304
|
# @return [Boolean]
|
7058
7305
|
#
|
7059
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7306
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#158
|
7060
7307
|
def does_not_match?(block); end
|
7061
7308
|
|
7062
7309
|
# @api private
|
7063
7310
|
# @private
|
7064
7311
|
#
|
7065
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7312
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#163
|
7066
7313
|
def failure_message; end
|
7067
7314
|
|
7068
7315
|
# @api private
|
7069
7316
|
# @private
|
7070
7317
|
#
|
7071
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7318
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#168
|
7072
7319
|
def failure_message_when_negated; end
|
7073
7320
|
|
7074
7321
|
# @api private
|
7075
7322
|
# @private
|
7076
7323
|
# @return [Boolean]
|
7077
7324
|
#
|
7078
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7325
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#151
|
7079
7326
|
def matches?(block); end
|
7080
7327
|
|
7081
7328
|
# @api private
|
7082
7329
|
# @private
|
7083
7330
|
# @return [Boolean]
|
7084
7331
|
#
|
7085
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7332
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#173
|
7086
7333
|
def supports_block_expectations?; end
|
7087
7334
|
|
7335
|
+
# @api private
|
7336
|
+
# @private
|
7337
|
+
# @return [Boolean]
|
7338
|
+
#
|
7339
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#178
|
7340
|
+
def supports_value_expectations?; end
|
7341
|
+
|
7088
7342
|
private
|
7089
7343
|
|
7090
7344
|
# @api private
|
7091
7345
|
#
|
7092
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7346
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#190
|
7093
7347
|
def negative_failure_reason; end
|
7094
7348
|
|
7095
7349
|
# @api private
|
7096
7350
|
#
|
7097
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7351
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#184
|
7098
7352
|
def positive_failure_reason; end
|
7099
7353
|
end
|
7100
7354
|
|
@@ -7199,7 +7453,7 @@ module RSpec::Matchers::Composable
|
|
7199
7453
|
# source://rspec-expectations//lib/rspec/matchers/composable.rb#142
|
7200
7454
|
def should_enumerate?(item); end
|
7201
7455
|
|
7202
|
-
# Transforms the given data
|
7456
|
+
# Transforms the given data structure (typically a hash or array)
|
7203
7457
|
# into a new data structure that, when `#inspect` is called on it,
|
7204
7458
|
# will provide descriptions of any contained matchers rather than
|
7205
7459
|
# the normal `#inspect` output.
|
@@ -7271,7 +7525,7 @@ module RSpec::Matchers::Composable
|
|
7271
7525
|
# source://rspec-expectations//lib/rspec/matchers/composable.rb#142
|
7272
7526
|
def should_enumerate?(item); end
|
7273
7527
|
|
7274
|
-
# Transforms the given data
|
7528
|
+
# Transforms the given data structure (typically a hash or array)
|
7275
7529
|
# into a new data structure that, when `#inspect` is called on it,
|
7276
7530
|
# will provide descriptions of any contained matchers rather than
|
7277
7531
|
# the normal `#inspect` output.
|
@@ -7339,7 +7593,7 @@ end
|
|
7339
7593
|
#
|
7340
7594
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#6
|
7341
7595
|
module RSpec::Matchers::DSL
|
7342
|
-
# Defines a matcher alias. The returned matcher's `description` will be
|
7596
|
+
# Defines a matcher alias. The returned matcher's `description` will be overridden
|
7343
7597
|
# to reflect the phrasing of the new name, which will be used in failure messages
|
7344
7598
|
# when passed as an argument to another matcher in a composed matcher expression.
|
7345
7599
|
#
|
@@ -7359,7 +7613,7 @@ module RSpec::Matchers::DSL
|
|
7359
7613
|
# @param new_name [Symbol] the new name for the matcher
|
7360
7614
|
# @param options [Hash] options for the aliased matcher
|
7361
7615
|
# @see RSpec::Matchers
|
7362
|
-
# @yield [String] optional block that, when given, is used to define the
|
7616
|
+
# @yield [String] optional block that, when given, is used to define the overridden
|
7363
7617
|
# logic. The yielded arg is the original description or failure message. If no
|
7364
7618
|
# block is provided, a default override is used based on the old and new names.
|
7365
7619
|
#
|
@@ -7375,11 +7629,11 @@ module RSpec::Matchers::DSL
|
|
7375
7629
|
# When args are passed to your matcher, they will be yielded here,
|
7376
7630
|
# usually representing the expected value(s).
|
7377
7631
|
#
|
7378
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7632
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#73
|
7379
7633
|
def define(name, &declarations); end
|
7380
7634
|
|
7381
7635
|
# Defines a negated matcher. The returned matcher's `description` and `failure_message`
|
7382
|
-
# will be
|
7636
|
+
# will be overridden to reflect the phrasing of the new name, and the match logic will
|
7383
7637
|
# be based on the original matcher but negated.
|
7384
7638
|
#
|
7385
7639
|
# @example
|
@@ -7389,11 +7643,11 @@ module RSpec::Matchers::DSL
|
|
7389
7643
|
# @param negated_name [Symbol] the name for the negated matcher
|
7390
7644
|
# @param base_name [Symbol] the name of the original matcher that will be negated
|
7391
7645
|
# @see RSpec::Matchers
|
7392
|
-
# @yield [String] optional block that, when given, is used to define the
|
7646
|
+
# @yield [String] optional block that, when given, is used to define the overridden
|
7393
7647
|
# logic. The yielded arg is the original description or failure message. If no
|
7394
7648
|
# block is provided, a default override is used based on the old and new names.
|
7395
7649
|
#
|
7396
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7650
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#61
|
7397
7651
|
def define_negated_matcher(negated_name, base_name, &description_override); end
|
7398
7652
|
|
7399
7653
|
# Defines a custom matcher.
|
@@ -7405,14 +7659,14 @@ module RSpec::Matchers::DSL
|
|
7405
7659
|
# When args are passed to your matcher, they will be yielded here,
|
7406
7660
|
# usually representing the expected value(s).
|
7407
7661
|
#
|
7408
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7662
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#73
|
7409
7663
|
def matcher(name, &declarations); end
|
7410
7664
|
|
7411
7665
|
private
|
7412
7666
|
|
7413
7667
|
# :nocov:
|
7414
7668
|
#
|
7415
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7669
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#84
|
7416
7670
|
def warn_about_block_args(name, declarations); end
|
7417
7671
|
end
|
7418
7672
|
|
@@ -7421,13 +7675,13 @@ end
|
|
7421
7675
|
# override any of these using the {RSpec::Matchers::DSL::Macros Macros} methods
|
7422
7676
|
# from within an `RSpec::Matchers.define` block.
|
7423
7677
|
#
|
7424
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7678
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#385
|
7425
7679
|
module RSpec::Matchers::DSL::DefaultImplementations
|
7426
7680
|
include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
7427
7681
|
|
7428
7682
|
# The default description.
|
7429
7683
|
#
|
7430
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7684
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#395
|
7431
7685
|
def description; end
|
7432
7686
|
|
7433
7687
|
# Used internally by objects returns by `should` and `should_not`.
|
@@ -7435,14 +7689,14 @@ module RSpec::Matchers::DSL::DefaultImplementations
|
|
7435
7689
|
# @api private
|
7436
7690
|
# @return [Boolean]
|
7437
7691
|
#
|
7438
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7692
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#390
|
7439
7693
|
def diffable?; end
|
7440
7694
|
|
7441
7695
|
# Most matchers do not expect call stack jumps.
|
7442
7696
|
#
|
7443
7697
|
# @return [Boolean]
|
7444
7698
|
#
|
7445
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7699
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#412
|
7446
7700
|
def expects_call_stack_jump?; end
|
7447
7701
|
|
7448
7702
|
# Matchers do not support block expectations by default. You
|
@@ -7450,19 +7704,24 @@ module RSpec::Matchers::DSL::DefaultImplementations
|
|
7450
7704
|
#
|
7451
7705
|
# @return [Boolean]
|
7452
7706
|
#
|
7453
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7707
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#403
|
7454
7708
|
def supports_block_expectations?; end
|
7455
7709
|
|
7710
|
+
# @return [Boolean]
|
7711
|
+
#
|
7712
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#407
|
7713
|
+
def supports_value_expectations?; end
|
7714
|
+
|
7456
7715
|
private
|
7457
7716
|
|
7458
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7717
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#418
|
7459
7718
|
def chained_method_clause_sentences; end
|
7460
7719
|
end
|
7461
7720
|
|
7462
7721
|
# Contains the methods that are available from within the
|
7463
7722
|
# `RSpec::Matchers.define` DSL for creating custom matchers.
|
7464
7723
|
#
|
7465
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7724
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#104
|
7466
7725
|
module RSpec::Matchers::DSL::Macros
|
7467
7726
|
# Convenience for defining methods on this matcher to create a fluent
|
7468
7727
|
# interface. The trick about fluent interfaces is that each method must
|
@@ -7492,7 +7751,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7492
7751
|
#
|
7493
7752
|
# expect(minor).to have_errors_on(:age).with("Not old enough to participate")
|
7494
7753
|
#
|
7495
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7754
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#298
|
7496
7755
|
def chain(method_name, *attr_names, &definition); end
|
7497
7756
|
|
7498
7757
|
# Customize the description to use for one-liners. Only use this when
|
@@ -7509,16 +7768,16 @@ module RSpec::Matchers::DSL::Macros
|
|
7509
7768
|
# end
|
7510
7769
|
# @yield [Object] actual the actual object (i.e. the value wrapped by `expect`)
|
7511
7770
|
#
|
7512
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7771
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#253
|
7513
7772
|
def description(&definition); end
|
7514
7773
|
|
7515
7774
|
# Tells the matcher to diff the actual and expected values in the failure
|
7516
7775
|
# message.
|
7517
7776
|
#
|
7518
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7777
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#259
|
7519
7778
|
def diffable; end
|
7520
7779
|
|
7521
|
-
# Customizes the failure
|
7780
|
+
# Customizes the failure message to use when this matcher is
|
7522
7781
|
# asked to positively match. Only use this when the message
|
7523
7782
|
# generated by default doesn't suit your needs.
|
7524
7783
|
#
|
@@ -7533,10 +7792,10 @@ module RSpec::Matchers::DSL::Macros
|
|
7533
7792
|
# end
|
7534
7793
|
# @yield [Object] actual the actual object (i.e. the value wrapped by `expect`)
|
7535
7794
|
#
|
7536
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7795
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#216
|
7537
7796
|
def failure_message(&definition); end
|
7538
7797
|
|
7539
|
-
# Customize the failure
|
7798
|
+
# Customize the failure message to use when this matcher is asked
|
7540
7799
|
# to negatively match. Only use this when the message generated by
|
7541
7800
|
# default doesn't suit your needs.
|
7542
7801
|
#
|
@@ -7551,7 +7810,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7551
7810
|
# end
|
7552
7811
|
# @yield [Object] actual the actual object (i.e. the value wrapped by `expect`)
|
7553
7812
|
#
|
7554
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7813
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#235
|
7555
7814
|
def failure_message_when_negated(&definition); end
|
7556
7815
|
|
7557
7816
|
# Stores the block that is used to determine whether this matcher passes
|
@@ -7562,7 +7821,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7562
7821
|
#
|
7563
7822
|
# By default the match block will swallow expectation errors (e.g.
|
7564
7823
|
# caused by using an expectation such as `expect(1).to eq 2`), if you
|
7565
|
-
#
|
7824
|
+
# wish to allow these to bubble up, pass in the option
|
7566
7825
|
# `:notify_expectation_failures => true`.
|
7567
7826
|
#
|
7568
7827
|
# @example
|
@@ -7580,7 +7839,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7580
7839
|
# @param options [Hash] for defining the behavior of the match block.
|
7581
7840
|
# @yield [Object] actual the actual value (i.e. the value wrapped by `expect`)
|
7582
7841
|
#
|
7583
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7842
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#131
|
7584
7843
|
def match(options = T.unsafe(nil), &match_block); end
|
7585
7844
|
|
7586
7845
|
# Use this instead of `match` when the block will raise an exception
|
@@ -7597,7 +7856,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7597
7856
|
# expect(email_validator).to accept_as_valid("person@company.com")
|
7598
7857
|
# @yield [Object] actual the actual object (i.e. the value wrapped by `expect`)
|
7599
7858
|
#
|
7600
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7859
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#188
|
7601
7860
|
def match_unless_raises(expected_exception = T.unsafe(nil), &match_block); end
|
7602
7861
|
|
7603
7862
|
# Use this to define the block for a negative expectation (`expect(...).not_to`)
|
@@ -7607,13 +7866,13 @@ module RSpec::Matchers::DSL::Macros
|
|
7607
7866
|
#
|
7608
7867
|
# By default the match block will swallow expectation errors (e.g.
|
7609
7868
|
# caused by using an expectation such as `expect(1).to eq 2`), if you
|
7610
|
-
#
|
7869
|
+
# wish to allow these to bubble up, pass in the option
|
7611
7870
|
# `:notify_expectation_failures => true`.
|
7612
7871
|
#
|
7613
7872
|
# @param options [Hash] for defining the behavior of the match block.
|
7614
7873
|
# @yield [Object] actual the actual value (i.e. the value wrapped by `expect`)
|
7615
7874
|
#
|
7616
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7875
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#160
|
7617
7876
|
def match_when_negated(options = T.unsafe(nil), &match_block); end
|
7618
7877
|
|
7619
7878
|
# Declares that the matcher can be used in a block expectation.
|
@@ -7621,12 +7880,12 @@ module RSpec::Matchers::DSL::Macros
|
|
7621
7880
|
# expectation without declaring this.
|
7622
7881
|
# (e.g. `expect { do_something }.to matcher`).
|
7623
7882
|
#
|
7624
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7883
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#267
|
7625
7884
|
def supports_block_expectations; end
|
7626
7885
|
|
7627
7886
|
private
|
7628
7887
|
|
7629
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7888
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#312
|
7630
7889
|
def assign_attributes(attr_names); end
|
7631
7890
|
|
7632
7891
|
# Does the following:
|
@@ -7634,7 +7893,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7634
7893
|
# - Defines the named method using a user-provided block
|
7635
7894
|
# in @user_method_defs, which is included as an ancestor
|
7636
7895
|
# in the singleton class in which we eval the `define` block.
|
7637
|
-
# - Defines an
|
7896
|
+
# - Defines an overridden definition for the same method
|
7638
7897
|
# usign the provided `our_def` block.
|
7639
7898
|
# - Provides a default `our_def` block for the common case
|
7640
7899
|
# of needing to call the user's definition with `@actual`
|
@@ -7647,7 +7906,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7647
7906
|
# (e.g. assigning `@actual`, rescueing errors, etc) and
|
7648
7907
|
# can `super` to the user's definition.
|
7649
7908
|
#
|
7650
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7909
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#346
|
7651
7910
|
def define_user_override(method_name, user_def, &our_def); end
|
7652
7911
|
end
|
7653
7912
|
|
@@ -7655,32 +7914,32 @@ end
|
|
7655
7914
|
#
|
7656
7915
|
# @deprecated Use the methods from {Macros} instead.
|
7657
7916
|
#
|
7658
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7917
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#354
|
7659
7918
|
module RSpec::Matchers::DSL::Macros::Deprecated
|
7660
7919
|
# @deprecated Use {Macros#failure_message} instead.
|
7661
7920
|
#
|
7662
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7921
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#368
|
7663
7922
|
def failure_message_for_should(&definition); end
|
7664
7923
|
|
7665
7924
|
# @deprecated Use {Macros#failure_message_when_negated} instead.
|
7666
7925
|
#
|
7667
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7926
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#374
|
7668
7927
|
def failure_message_for_should_not(&definition); end
|
7669
7928
|
|
7670
7929
|
# @deprecated Use {Macros#match} instead.
|
7671
7930
|
#
|
7672
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7931
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#356
|
7673
7932
|
def match_for_should(&definition); end
|
7674
7933
|
|
7675
7934
|
# @deprecated Use {Macros#match_when_negated} instead.
|
7676
7935
|
#
|
7677
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7936
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#362
|
7678
7937
|
def match_for_should_not(&definition); end
|
7679
7938
|
end
|
7680
7939
|
|
7681
7940
|
# @private
|
7682
7941
|
#
|
7683
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7942
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#146
|
7684
7943
|
RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
7685
7944
|
|
7686
7945
|
# The class used for custom matchers. The block passed to
|
@@ -7688,7 +7947,7 @@ RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
|
7688
7947
|
# of the singleton class of an instance, and will have the
|
7689
7948
|
# {RSpec::Matchers::DSL::Macros Macros} methods available.
|
7690
7949
|
#
|
7691
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7950
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#433
|
7692
7951
|
class RSpec::Matchers::DSL::Matcher
|
7693
7952
|
include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
7694
7953
|
include ::RSpec::Matchers::DSL::DefaultImplementations
|
@@ -7700,18 +7959,18 @@ class RSpec::Matchers::DSL::Matcher
|
|
7700
7959
|
# @api private
|
7701
7960
|
# @return [Matcher] a new instance of Matcher
|
7702
7961
|
#
|
7703
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7962
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#462
|
7704
7963
|
def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end
|
7705
7964
|
|
7706
7965
|
# Exposes the value being matched against -- generally the object
|
7707
7966
|
# object wrapped by `expect`.
|
7708
7967
|
#
|
7709
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7968
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#449
|
7710
7969
|
def actual; end
|
7711
7970
|
|
7712
7971
|
# The block parameter used in the expectation
|
7713
7972
|
#
|
7714
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7973
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#456
|
7715
7974
|
def block_arg; end
|
7716
7975
|
|
7717
7976
|
# Provides the expected value. This will return an array if
|
@@ -7720,7 +7979,7 @@ class RSpec::Matchers::DSL::Matcher
|
|
7720
7979
|
#
|
7721
7980
|
# @see #expected_as_array
|
7722
7981
|
#
|
7723
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7982
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#483
|
7724
7983
|
def expected; end
|
7725
7984
|
|
7726
7985
|
# Returns the expected value as an an array. This exists primarily
|
@@ -7729,30 +7988,30 @@ class RSpec::Matchers::DSL::Matcher
|
|
7729
7988
|
#
|
7730
7989
|
# @see #expected
|
7731
7990
|
#
|
7732
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7991
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#495
|
7733
7992
|
def expected_as_array; end
|
7734
7993
|
|
7735
7994
|
# Adds the name (rather than a cryptic hex number)
|
7736
7995
|
# so we can identify an instance of
|
7737
7996
|
# the matcher in error messages (e.g. for `NoMethodError`)
|
7738
7997
|
#
|
7739
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7998
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#500
|
7740
7999
|
def inspect; end
|
7741
8000
|
|
7742
8001
|
# The name of the matcher.
|
7743
8002
|
#
|
7744
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
8003
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#459
|
7745
8004
|
def name; end
|
7746
8005
|
|
7747
8006
|
# Exposes the exception raised during the matching by `match_unless_raises`.
|
7748
8007
|
# Could be useful to extract details for a failure message.
|
7749
8008
|
#
|
7750
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
8009
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#453
|
7751
8010
|
def rescued_exception; end
|
7752
8011
|
|
7753
8012
|
private
|
7754
8013
|
|
7755
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
8014
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#523
|
7756
8015
|
def actual_arg_for(block); end
|
7757
8016
|
|
7758
8017
|
# Takes care of forwarding unhandled messages to the
|
@@ -7762,7 +8021,7 @@ class RSpec::Matchers::DSL::Matcher
|
|
7762
8021
|
# Rails' test helper methods, but it's also a useful
|
7763
8022
|
# feature in its own right.
|
7764
8023
|
#
|
7765
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
8024
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#533
|
7766
8025
|
def method_missing(method, *args, **_arg2, &block); end
|
7767
8026
|
|
7768
8027
|
# Indicates that this matcher responds to messages
|
@@ -7771,11 +8030,11 @@ class RSpec::Matchers::DSL::Matcher
|
|
7771
8030
|
#
|
7772
8031
|
# @return [Boolean]
|
7773
8032
|
#
|
7774
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
8033
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#508
|
7775
8034
|
def respond_to_missing?(method, include_private = T.unsafe(nil)); end
|
7776
8035
|
end
|
7777
8036
|
|
7778
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#
|
8037
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#959
|
7779
8038
|
RSpec::Matchers::DYNAMIC_MATCHER_REGEX = T.let(T.unsafe(nil), Regexp)
|
7780
8039
|
|
7781
8040
|
# Facilitates converting ruby objects to English phrases.
|
@@ -7809,17 +8068,52 @@ module RSpec::Matchers::EnglishPhrasing
|
|
7809
8068
|
end
|
7810
8069
|
end
|
7811
8070
|
|
7812
|
-
#
|
7813
|
-
|
8071
|
+
# source://rspec-expectations//lib/rspec/matchers.rb#958
|
8072
|
+
RSpec::Matchers::HAS_REGEX = T.let(T.unsafe(nil), Regexp)
|
8073
|
+
|
8074
|
+
# Provides the necessary plumbing to wrap a matcher with a decorator.
|
8075
|
+
#
|
8076
|
+
# @private
|
8077
|
+
#
|
8078
|
+
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#31
|
8079
|
+
class RSpec::Matchers::MatcherDelegator < ::RSpec::Matchers::BaseDelegator
|
8080
|
+
include ::RSpec::Matchers::Composable
|
8081
|
+
|
8082
|
+
# @return [MatcherDelegator] a new instance of MatcherDelegator
|
8083
|
+
#
|
8084
|
+
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#35
|
8085
|
+
def initialize(base_matcher); end
|
8086
|
+
|
8087
|
+
# Returns the value of attribute base_matcher.
|
8088
|
+
#
|
8089
|
+
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#33
|
8090
|
+
def base_matcher; end
|
8091
|
+
|
8092
|
+
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#39
|
8093
|
+
def method_missing(*args, &block); end
|
8094
|
+
|
8095
|
+
private
|
8096
|
+
|
8097
|
+
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#55
|
8098
|
+
def initialize_copy(other); end
|
8099
|
+
|
8100
|
+
# @return [Boolean]
|
8101
|
+
#
|
8102
|
+
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#44
|
8103
|
+
def respond_to_missing?(name, include_all = T.unsafe(nil)); end
|
8104
|
+
end
|
8105
|
+
|
8106
|
+
# Handles list of expected and actual value pairs when there is a need
|
8107
|
+
# to render multiple diffs. Also can handle one pair.
|
7814
8108
|
#
|
7815
8109
|
# @api private
|
7816
8110
|
#
|
7817
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
7818
|
-
class RSpec::Matchers::
|
8111
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#6
|
8112
|
+
class RSpec::Matchers::MultiMatcherDiff
|
7819
8113
|
# @api private
|
7820
|
-
# @return [
|
8114
|
+
# @return [MultiMatcherDiff] a new instance of MultiMatcherDiff
|
7821
8115
|
#
|
7822
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
8116
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#16
|
7823
8117
|
def initialize(expected_list); end
|
7824
8118
|
|
7825
8119
|
# Returns message with diff(s) appended for provided differ
|
@@ -7828,51 +8122,51 @@ class RSpec::Matchers::ExpectedsForMultipleDiffs
|
|
7828
8122
|
# @api private
|
7829
8123
|
# @param message [String] original failure message
|
7830
8124
|
# @param differ [Proc]
|
7831
|
-
# @param actual [Any] value
|
7832
8125
|
# @return [String]
|
7833
8126
|
#
|
7834
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
7835
|
-
def message_with_diff(message, differ
|
8127
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#47
|
8128
|
+
def message_with_diff(message, differ); end
|
7836
8129
|
|
7837
8130
|
private
|
7838
8131
|
|
7839
8132
|
# @api private
|
7840
8133
|
#
|
7841
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
7842
|
-
def diffs(differ
|
8134
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#68
|
8135
|
+
def diffs(differ); end
|
7843
8136
|
|
7844
8137
|
class << self
|
7845
8138
|
# Wraps provided matcher list in instance of
|
7846
|
-
#
|
8139
|
+
# MultiMatcherDiff.
|
7847
8140
|
#
|
7848
8141
|
# @api private
|
7849
8142
|
# @param matchers [Array<Any>] list of matchers to wrap
|
7850
|
-
# @return [RSpec::Matchers::
|
8143
|
+
# @return [RSpec::Matchers::MultiMatcherDiff]
|
7851
8144
|
#
|
7852
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
8145
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#37
|
7853
8146
|
def for_many_matchers(matchers); end
|
7854
8147
|
|
7855
8148
|
# Wraps provided expected value in instance of
|
7856
|
-
#
|
7857
|
-
#
|
8149
|
+
# MultiMatcherDiff. If provided value is already an
|
8150
|
+
# MultiMatcherDiff then it just returns it.
|
7858
8151
|
#
|
7859
8152
|
# @api private
|
7860
8153
|
# @param expected [Any] value to be wrapped
|
7861
|
-
# @
|
8154
|
+
# @param actual [Any] value
|
8155
|
+
# @return [RSpec::Matchers::MultiMatcherDiff]
|
7862
8156
|
#
|
7863
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
7864
|
-
def from(expected); end
|
8157
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#27
|
8158
|
+
def from(expected, actual); end
|
7865
8159
|
|
7866
8160
|
private
|
7867
8161
|
|
7868
8162
|
# @api private
|
7869
8163
|
#
|
7870
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
8164
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#58
|
7871
8165
|
def diff_label_for(matcher); end
|
7872
8166
|
|
7873
8167
|
# @api private
|
7874
8168
|
#
|
7875
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
8169
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#62
|
7876
8170
|
def truncated(description); end
|
7877
8171
|
end
|
7878
8172
|
end
|
@@ -7883,48 +8177,13 @@ end
|
|
7883
8177
|
# @api private
|
7884
8178
|
# @private
|
7885
8179
|
#
|
7886
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
7887
|
-
RSpec::Matchers::
|
8180
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#10
|
8181
|
+
RSpec::Matchers::MultiMatcherDiff::DEFAULT_DIFF_LABEL = T.let(T.unsafe(nil), String)
|
7888
8182
|
|
7889
8183
|
# Maximum readable matcher description length
|
7890
8184
|
#
|
7891
8185
|
# @api private
|
7892
8186
|
# @private
|
7893
8187
|
#
|
7894
|
-
# source://rspec-expectations//lib/rspec/matchers/
|
7895
|
-
RSpec::Matchers::
|
7896
|
-
|
7897
|
-
# source://rspec-expectations//lib/rspec/matchers.rb#955
|
7898
|
-
RSpec::Matchers::HAS_REGEX = T.let(T.unsafe(nil), Regexp)
|
7899
|
-
|
7900
|
-
# Provides the necessary plumbing to wrap a matcher with a decorator.
|
7901
|
-
#
|
7902
|
-
# @private
|
7903
|
-
#
|
7904
|
-
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#5
|
7905
|
-
class RSpec::Matchers::MatcherDelegator
|
7906
|
-
include ::RSpec::Matchers::Composable
|
7907
|
-
|
7908
|
-
# @return [MatcherDelegator] a new instance of MatcherDelegator
|
7909
|
-
#
|
7910
|
-
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#9
|
7911
|
-
def initialize(base_matcher); end
|
7912
|
-
|
7913
|
-
# Returns the value of attribute base_matcher.
|
7914
|
-
#
|
7915
|
-
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#7
|
7916
|
-
def base_matcher; end
|
7917
|
-
|
7918
|
-
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#13
|
7919
|
-
def method_missing(*args, &block); end
|
7920
|
-
|
7921
|
-
private
|
7922
|
-
|
7923
|
-
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#29
|
7924
|
-
def initialize_copy(other); end
|
7925
|
-
|
7926
|
-
# @return [Boolean]
|
7927
|
-
#
|
7928
|
-
# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#18
|
7929
|
-
def respond_to_missing?(name, include_all = T.unsafe(nil)); end
|
7930
|
-
end
|
8188
|
+
# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#14
|
8189
|
+
RSpec::Matchers::MultiMatcherDiff::DESCRIPTION_MAX_LENGTH = T.let(T.unsafe(nil), Integer)
|