workos 2.9.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +11 -0
- data/Gemfile.lock +32 -3
- data/bin/tapioca +29 -0
- data/lib/workos/portal.rb +1 -1
- data/lib/workos/types/intent_enum.rb +3 -2
- data/lib/workos/version.rb +1 -1
- data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
- data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +27 -22
- data/sorbet/rbi/gems/codecov@0.2.12.rbi +55 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
- data/sorbet/rbi/gems/docile@1.3.5.rbi +54 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
- data/sorbet/rbi/gems/json@2.5.1.rbi +109 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
- data/sorbet/rbi/gems/parser@3.0.1.0.rbi +1187 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +8 -0
- data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +146 -0
- data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
- data/sorbet/rbi/gems/{rake.rbi → rake@13.0.3.rbi} +587 -424
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +2118 -0
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1117 -0
- data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +587 -506
- data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.9.3.rbi} +2321 -1752
- data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.9.4.rbi} +1119 -677
- data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.9.1.rbi} +1327 -933
- data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +511 -0
- data/sorbet/rbi/gems/rspec@3.9.0.rbi +38 -0
- data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +1881 -0
- data/sorbet/rbi/gems/rubocop@0.93.1.rbi +11497 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +1549 -0
- data/sorbet/rbi/gems/tapioca@0.7.3.rbi +1718 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
- data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +22 -0
- data/sorbet/rbi/gems/unparser@0.6.2.rbi +8 -0
- data/sorbet/rbi/gems/{vcr.rbi → vcr@5.0.0.rbi} +528 -401
- data/sorbet/rbi/gems/webmock@3.12.2.rbi +662 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +268 -0
- data/sorbet/rbi/gems/yard@0.9.26.rbi +4048 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- data/workos.gemspec +1 -1
- metadata +61 -50
- data/sorbet/rbi/gems/addressable.rbi +0 -199
- data/sorbet/rbi/gems/codecov.rbi +0 -37
- data/sorbet/rbi/gems/crack.rbi +0 -62
- data/sorbet/rbi/gems/docile.rbi +0 -36
- data/sorbet/rbi/gems/hashdiff.rbi +0 -66
- data/sorbet/rbi/gems/parallel.rbi +0 -83
- data/sorbet/rbi/gems/parser.rbi +0 -1429
- data/sorbet/rbi/gems/public_suffix.rbi +0 -104
- data/sorbet/rbi/gems/regexp_parser.rbi +0 -926
- data/sorbet/rbi/gems/rspec-support.rbi +0 -280
- data/sorbet/rbi/gems/rspec.rbi +0 -15
- data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1355
- data/sorbet/rbi/gems/rubocop.rbi +0 -7253
- data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -304
- data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
- data/sorbet/rbi/gems/simplecov.rbi +0 -406
- data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
- data/sorbet/rbi/gems/webmock.rbi +0 -556
- data/sorbet/rbi/gems/yard.rbi +0 -1165
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +0 -645
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -1891
- data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
- data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +0 -1214
- data/sorbet/rbi/todo.rbi +0 -5
|
@@ -1,17 +1,338 @@
|
|
|
1
|
-
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
|
2
|
-
# srb rbi gems
|
|
3
|
-
|
|
4
1
|
# typed: true
|
|
5
|
-
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
# rspec-expectations-3.9.4
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `rspec-expectations` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem rspec-expectations`.
|
|
11
6
|
|
|
12
7
|
module RSpec
|
|
8
|
+
extend ::RSpec::Support::Warnings
|
|
9
|
+
extend ::RSpec::Core::Warnings
|
|
10
|
+
|
|
11
|
+
class << self
|
|
12
|
+
def clear_examples; end
|
|
13
|
+
def configuration; end
|
|
14
|
+
def configuration=(_arg0); end
|
|
15
|
+
def configure; end
|
|
16
|
+
def const_missing(name); end
|
|
17
|
+
def context(*args, &example_group_block); end
|
|
18
|
+
def current_example; end
|
|
19
|
+
def current_example=(example); end
|
|
20
|
+
def describe(*args, &example_group_block); end
|
|
21
|
+
def example_group(*args, &example_group_block); end
|
|
22
|
+
def fcontext(*args, &example_group_block); end
|
|
23
|
+
def fdescribe(*args, &example_group_block); end
|
|
24
|
+
def reset; end
|
|
25
|
+
def shared_context(name, *args, &block); end
|
|
26
|
+
def shared_examples(name, *args, &block); end
|
|
27
|
+
def shared_examples_for(name, *args, &block); end
|
|
28
|
+
def world; end
|
|
29
|
+
def world=(_arg0); end
|
|
30
|
+
def xcontext(*args, &example_group_block); end
|
|
31
|
+
def xdescribe(*args, &example_group_block); end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
module RSpec::Expectations
|
|
36
|
+
class << self
|
|
37
|
+
def configuration; end
|
|
38
|
+
def differ; end
|
|
39
|
+
def fail_with(message, expected = T.unsafe(nil), actual = T.unsafe(nil)); end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class RSpec::Expectations::BlockExpectationTarget < ::RSpec::Expectations::ExpectationTarget
|
|
44
|
+
def not_to(matcher, message = T.unsafe(nil), &block); end
|
|
45
|
+
def to(matcher, message = T.unsafe(nil), &block); end
|
|
46
|
+
def to_not(matcher, message = T.unsafe(nil), &block); end
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
|
|
50
|
+
def enforce_block_expectation(matcher); end
|
|
51
|
+
def supports_block_expectations?(matcher); end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
class RSpec::Expectations::BlockSnippetExtractor
|
|
55
|
+
def initialize(proc, method_name); end
|
|
56
|
+
|
|
57
|
+
def body_content_lines; end
|
|
58
|
+
def method_name; end
|
|
59
|
+
def proc; end
|
|
60
|
+
|
|
61
|
+
private
|
|
62
|
+
|
|
63
|
+
def beginning_line_number; end
|
|
64
|
+
def block_token_extractor; end
|
|
65
|
+
def file_path; end
|
|
66
|
+
def raw_body_lines; end
|
|
67
|
+
def raw_body_snippet; end
|
|
68
|
+
def source; end
|
|
69
|
+
def source_location; end
|
|
70
|
+
|
|
71
|
+
class << self
|
|
72
|
+
def try_extracting_single_line_body_of(proc, method_name); end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class RSpec::Expectations::BlockSnippetExtractor::AmbiguousTargetError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end
|
|
77
|
+
|
|
78
|
+
class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct
|
|
79
|
+
def beginning_line_number; end
|
|
80
|
+
def beginning_line_number=(_); end
|
|
81
|
+
def body_content_locations; end
|
|
82
|
+
def method_call_location; end
|
|
83
|
+
def method_name; end
|
|
84
|
+
def method_name=(_); end
|
|
85
|
+
def source; end
|
|
86
|
+
def source=(_); end
|
|
87
|
+
|
|
88
|
+
private
|
|
89
|
+
|
|
90
|
+
def block_body_node; end
|
|
91
|
+
def block_wrapper_node; end
|
|
92
|
+
def candidate_block_wrapper_nodes; end
|
|
93
|
+
def candidate_method_ident_nodes; end
|
|
94
|
+
def method_ident_node; end
|
|
95
|
+
def method_ident_node?(node); end
|
|
96
|
+
|
|
97
|
+
class << self
|
|
98
|
+
def [](*_arg0); end
|
|
99
|
+
def inspect; end
|
|
100
|
+
def keyword_init?; end
|
|
101
|
+
def members; end
|
|
102
|
+
def new(*_arg0); end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct
|
|
107
|
+
def initialize(*_arg0); end
|
|
108
|
+
|
|
109
|
+
def beginning_line_number; end
|
|
110
|
+
def beginning_line_number=(_); end
|
|
111
|
+
def body_tokens; end
|
|
112
|
+
def method_name; end
|
|
113
|
+
def method_name=(_); end
|
|
114
|
+
def source; end
|
|
115
|
+
def source=(_); end
|
|
116
|
+
def state; end
|
|
117
|
+
|
|
118
|
+
private
|
|
119
|
+
|
|
120
|
+
def after_beginning_of_args_state(token); end
|
|
121
|
+
def after_beginning_of_body_state(token); end
|
|
122
|
+
def after_method_call_state(token); end
|
|
123
|
+
def after_opener_state(token); end
|
|
124
|
+
def block_locator; end
|
|
125
|
+
def correct_block?(body_tokens); end
|
|
126
|
+
def finalize_pending_tokens!; end
|
|
127
|
+
def finish!; end
|
|
128
|
+
def finish_or_find_next_block_if_incorrect!; end
|
|
129
|
+
def handle_closer_token(token); end
|
|
130
|
+
def handle_opener_token(token); end
|
|
131
|
+
def initial_state(token); end
|
|
132
|
+
def invoke_state_handler(token); end
|
|
133
|
+
def opener_token?(token); end
|
|
134
|
+
def opener_token_stack; end
|
|
135
|
+
def parse!; end
|
|
136
|
+
def pending_tokens; end
|
|
137
|
+
def pipe_token?(token); end
|
|
138
|
+
|
|
139
|
+
class << self
|
|
140
|
+
def [](*_arg0); end
|
|
141
|
+
def inspect; end
|
|
142
|
+
def keyword_init?; end
|
|
143
|
+
def members; end
|
|
144
|
+
def new(*_arg0); end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
class RSpec::Expectations::BlockSnippetExtractor::Error < ::StandardError; end
|
|
149
|
+
class RSpec::Expectations::BlockSnippetExtractor::TargetNotFoundError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end
|
|
150
|
+
|
|
151
|
+
class RSpec::Expectations::Configuration
|
|
152
|
+
def initialize; end
|
|
153
|
+
|
|
154
|
+
def add_should_and_should_not_to(*modules); end
|
|
155
|
+
def backtrace_formatter; end
|
|
156
|
+
def backtrace_formatter=(_arg0); end
|
|
157
|
+
def color?; end
|
|
158
|
+
def false_positives_handler; end
|
|
159
|
+
def include_chain_clauses_in_custom_matcher_descriptions=(_arg0); end
|
|
160
|
+
def include_chain_clauses_in_custom_matcher_descriptions?; end
|
|
161
|
+
def max_formatted_output_length=(length); end
|
|
162
|
+
def on_potential_false_positives; end
|
|
163
|
+
def on_potential_false_positives=(behavior); end
|
|
164
|
+
def reset_syntaxes_to_default; end
|
|
165
|
+
def syntax; end
|
|
166
|
+
def syntax=(values); end
|
|
167
|
+
def warn_about_potential_false_positives=(boolean); end
|
|
168
|
+
def warn_about_potential_false_positives?; end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
RSpec::Expectations::Configuration::FALSE_POSITIVE_BEHAVIOURS = T.let(T.unsafe(nil), Hash)
|
|
172
|
+
|
|
173
|
+
module RSpec::Expectations::Configuration::NullBacktraceFormatter
|
|
174
|
+
class << self
|
|
175
|
+
def format_backtrace(backtrace); end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
module RSpec::Expectations::ExpectationHelper
|
|
180
|
+
class << self
|
|
181
|
+
def check_message(msg); end
|
|
182
|
+
def handle_failure(matcher, message, failure_message_method); end
|
|
183
|
+
def modern_matcher_from(matcher); end
|
|
184
|
+
def with_matcher(handler, matcher, message); end
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
class RSpec::Expectations::ExpectationNotMetError < ::Exception; end
|
|
189
|
+
|
|
190
|
+
class RSpec::Expectations::ExpectationTarget
|
|
191
|
+
include ::RSpec::Expectations::ExpectationTarget::InstanceMethods
|
|
192
|
+
|
|
193
|
+
def initialize(value); end
|
|
194
|
+
|
|
195
|
+
def target; end
|
|
196
|
+
|
|
197
|
+
class << self
|
|
198
|
+
def for(value, block); end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
module RSpec::Expectations::ExpectationTarget::InstanceMethods
|
|
203
|
+
def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
|
204
|
+
def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
|
205
|
+
def to_not(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
|
206
|
+
|
|
207
|
+
private
|
|
208
|
+
|
|
209
|
+
def prevent_operator_matchers(verb); end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
module RSpec::Expectations::ExpectationTarget::UndefinedValue; end
|
|
213
|
+
|
|
214
|
+
class RSpec::Expectations::FailureAggregator
|
|
215
|
+
def initialize(block_label, metadata); end
|
|
216
|
+
|
|
217
|
+
def aggregate; end
|
|
218
|
+
def block_label; end
|
|
219
|
+
def call(failure, options); end
|
|
220
|
+
def failures; end
|
|
221
|
+
def metadata; end
|
|
222
|
+
def other_errors; end
|
|
223
|
+
|
|
224
|
+
private
|
|
225
|
+
|
|
226
|
+
def assign_backtrace(failure); end
|
|
227
|
+
def notify_aggregated_failures; end
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
RSpec::Expectations::LegacyMacherAdapter = RSpec::Expectations::LegacyMatcherAdapter
|
|
231
|
+
|
|
232
|
+
class RSpec::Expectations::LegacyMatcherAdapter < ::RSpec::Matchers::MatcherDelegator
|
|
233
|
+
def initialize(matcher); end
|
|
234
|
+
|
|
235
|
+
class << self
|
|
236
|
+
def wrap(matcher); end
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < ::RSpec::Expectations::LegacyMatcherAdapter
|
|
241
|
+
def failure_message; end
|
|
242
|
+
def failure_message_when_negated; end
|
|
243
|
+
|
|
244
|
+
class << self
|
|
245
|
+
def interface_matches?(matcher); end
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
class RSpec::Expectations::LegacyMatcherAdapter::RSpec2 < ::RSpec::Expectations::LegacyMatcherAdapter
|
|
250
|
+
def failure_message; end
|
|
251
|
+
def failure_message_when_negated; end
|
|
252
|
+
|
|
253
|
+
class << self
|
|
254
|
+
def interface_matches?(matcher); end
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class RSpec::Expectations::MultipleExpectationsNotMetError < ::RSpec::Expectations::ExpectationNotMetError
|
|
259
|
+
def initialize(failure_aggregator); end
|
|
260
|
+
|
|
261
|
+
def aggregation_block_label; end
|
|
262
|
+
def aggregation_metadata; end
|
|
263
|
+
def all_exceptions; end
|
|
264
|
+
def exception_count_description; end
|
|
265
|
+
def failures; end
|
|
266
|
+
def message; end
|
|
267
|
+
def other_errors; end
|
|
268
|
+
def summary; end
|
|
269
|
+
|
|
270
|
+
private
|
|
271
|
+
|
|
272
|
+
def block_description; end
|
|
273
|
+
def enumerated(exceptions, index_offset); end
|
|
274
|
+
def enumerated_errors; end
|
|
275
|
+
def enumerated_failures; end
|
|
276
|
+
def indentation; end
|
|
277
|
+
def indented(failure_message, index); end
|
|
278
|
+
def index_label(index); end
|
|
279
|
+
def longest_index_label_width; end
|
|
280
|
+
def pluralize(noun, count); end
|
|
281
|
+
def width_of_label(index); end
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
class RSpec::Expectations::NegativeExpectationHandler
|
|
285
|
+
class << self
|
|
286
|
+
def does_not_match?(matcher, actual, &block); end
|
|
287
|
+
def handle_matcher(actual, initial_matcher, message = T.unsafe(nil), &block); end
|
|
288
|
+
def opposite_should_method; end
|
|
289
|
+
def should_method; end
|
|
290
|
+
def verb; end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
class RSpec::Expectations::PositiveExpectationHandler
|
|
295
|
+
class << self
|
|
296
|
+
def handle_matcher(actual, initial_matcher, message = T.unsafe(nil), &block); end
|
|
297
|
+
def opposite_should_method; end
|
|
298
|
+
def should_method; end
|
|
299
|
+
def verb; end
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
module RSpec::Expectations::Syntax
|
|
304
|
+
private
|
|
305
|
+
|
|
306
|
+
def default_should_host; end
|
|
307
|
+
def disable_expect(syntax_host = T.unsafe(nil)); end
|
|
308
|
+
def disable_should(syntax_host = T.unsafe(nil)); end
|
|
309
|
+
def enable_expect(syntax_host = T.unsafe(nil)); end
|
|
310
|
+
def enable_should(syntax_host = T.unsafe(nil)); end
|
|
311
|
+
def expect_enabled?(syntax_host = T.unsafe(nil)); end
|
|
312
|
+
def should_enabled?(syntax_host = T.unsafe(nil)); end
|
|
313
|
+
def warn_about_should!; end
|
|
314
|
+
def warn_about_should_unless_configured(method_name); end
|
|
315
|
+
|
|
316
|
+
class << self
|
|
317
|
+
def default_should_host; end
|
|
318
|
+
def disable_expect(syntax_host = T.unsafe(nil)); end
|
|
319
|
+
def disable_should(syntax_host = T.unsafe(nil)); end
|
|
320
|
+
def enable_expect(syntax_host = T.unsafe(nil)); end
|
|
321
|
+
def enable_should(syntax_host = T.unsafe(nil)); end
|
|
322
|
+
def expect_enabled?(syntax_host = T.unsafe(nil)); end
|
|
323
|
+
def should_enabled?(syntax_host = T.unsafe(nil)); end
|
|
324
|
+
def warn_about_should!; end
|
|
325
|
+
def warn_about_should_unless_configured(method_name); end
|
|
326
|
+
end
|
|
13
327
|
end
|
|
328
|
+
|
|
329
|
+
module RSpec::Expectations::Version; end
|
|
330
|
+
RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String)
|
|
331
|
+
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
|
332
|
+
|
|
14
333
|
module RSpec::Matchers
|
|
334
|
+
extend ::RSpec::Matchers::DSL
|
|
335
|
+
|
|
15
336
|
def a_block_changing(*args, &block); end
|
|
16
337
|
def a_block_outputting(*args, &block); end
|
|
17
338
|
def a_block_raising(*args, &block); end
|
|
@@ -38,7 +359,7 @@ module RSpec::Matchers
|
|
|
38
359
|
def a_value(*args, &block); end
|
|
39
360
|
def a_value_between(*args, &block); end
|
|
40
361
|
def a_value_within(*args, &block); end
|
|
41
|
-
def aggregate_failures(label = nil, metadata = nil, &block); end
|
|
362
|
+
def aggregate_failures(label = T.unsafe(nil), metadata = T.unsafe(nil), &block); end
|
|
42
363
|
def all(expected); end
|
|
43
364
|
def an_instance_of(*args, &block); end
|
|
44
365
|
def an_object_eq_to(*args, &block); end
|
|
@@ -62,7 +383,7 @@ module RSpec::Matchers
|
|
|
62
383
|
def be_nil; end
|
|
63
384
|
def be_truthy; end
|
|
64
385
|
def be_within(delta); end
|
|
65
|
-
def change(receiver = nil, message = nil, &block); end
|
|
386
|
+
def change(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
|
66
387
|
def changing(*args, &block); end
|
|
67
388
|
def contain_exactly(*items); end
|
|
68
389
|
def containing_exactly(*args, &block); end
|
|
@@ -78,7 +399,7 @@ module RSpec::Matchers
|
|
|
78
399
|
def equal_to(*args, &block); end
|
|
79
400
|
def exist(*args); end
|
|
80
401
|
def existing(*args, &block); end
|
|
81
|
-
def expect(value = nil, &block); end
|
|
402
|
+
def expect(value = T.unsafe(nil), &block); end
|
|
82
403
|
def have_attributes(expected); end
|
|
83
404
|
def having_attributes(*args, &block); end
|
|
84
405
|
def include(*expected); end
|
|
@@ -87,30 +408,17 @@ module RSpec::Matchers
|
|
|
87
408
|
def match_array(items); end
|
|
88
409
|
def match_regex(*args, &block); end
|
|
89
410
|
def matching(*args, &block); end
|
|
90
|
-
def
|
|
91
|
-
def
|
|
92
|
-
def
|
|
93
|
-
def raise_exception(error = nil, message = nil, &block); end
|
|
411
|
+
def output(expected = T.unsafe(nil)); end
|
|
412
|
+
def raise_error(error = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
|
413
|
+
def raise_exception(error = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
|
94
414
|
def raising(*args, &block); end
|
|
95
415
|
def respond_to(*names); end
|
|
96
|
-
def respond_to_missing?(method, *arg1); end
|
|
97
416
|
def responding_to(*args, &block); end
|
|
98
|
-
def satisfy(description = nil, &block); end
|
|
417
|
+
def satisfy(description = T.unsafe(nil), &block); end
|
|
99
418
|
def satisfying(*args, &block); end
|
|
100
|
-
def self.alias_matcher(*args, &block); end
|
|
101
|
-
def self.clear_generated_description; end
|
|
102
|
-
def self.configuration; end
|
|
103
|
-
def self.generated_description; end
|
|
104
|
-
def self.is_a_describable_matcher?(obj); end
|
|
105
|
-
def self.is_a_matcher?(obj); end
|
|
106
|
-
def self.last_description; end
|
|
107
|
-
def self.last_expectation_handler; end
|
|
108
|
-
def self.last_expectation_handler=(arg0); end
|
|
109
|
-
def self.last_matcher; end
|
|
110
|
-
def self.last_matcher=(arg0); end
|
|
111
419
|
def start_with(*expected); end
|
|
112
420
|
def starting_with(*args, &block); end
|
|
113
|
-
def throw_symbol(expected_symbol = nil, expected_arg = nil); end
|
|
421
|
+
def throw_symbol(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end
|
|
114
422
|
def throwing(*args, &block); end
|
|
115
423
|
def within(*args, &block); end
|
|
116
424
|
def yield_control; end
|
|
@@ -121,448 +429,237 @@ module RSpec::Matchers
|
|
|
121
429
|
def yielding_successive_args(*args, &block); end
|
|
122
430
|
def yielding_with_args(*args, &block); end
|
|
123
431
|
def yielding_with_no_args(*args, &block); end
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
def
|
|
128
|
-
def
|
|
432
|
+
|
|
433
|
+
private
|
|
434
|
+
|
|
435
|
+
def method_missing(method, *args, **_arg2, &block); end
|
|
436
|
+
def respond_to_missing?(method, *_arg1); end
|
|
437
|
+
|
|
438
|
+
class << self
|
|
439
|
+
def alias_matcher(*args, &block); end
|
|
440
|
+
def clear_generated_description; end
|
|
441
|
+
def configuration; end
|
|
442
|
+
def generated_description; end
|
|
443
|
+
def is_a_describable_matcher?(obj); end
|
|
444
|
+
def is_a_matcher?(obj); end
|
|
445
|
+
def last_description; end
|
|
446
|
+
def last_expectation_handler; end
|
|
447
|
+
def last_expectation_handler=(_arg0); end
|
|
448
|
+
def last_matcher; end
|
|
449
|
+
def last_matcher=(_arg0); end
|
|
450
|
+
end
|
|
129
451
|
end
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
def
|
|
133
|
-
|
|
134
|
-
def
|
|
135
|
-
def
|
|
136
|
-
def
|
|
137
|
-
def
|
|
138
|
-
def self.unreadable_io?(object); end
|
|
139
|
-
def should_enumerate?(item); end
|
|
140
|
-
def surface_descriptions_in(item); end
|
|
141
|
-
def unreadable_io?(object); end
|
|
142
|
-
def values_match?(expected, actual); end
|
|
143
|
-
def with_matchers_cloned(object); end
|
|
144
|
-
def |(matcher); end
|
|
452
|
+
|
|
453
|
+
class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator
|
|
454
|
+
def initialize(base_matcher, description_block); end
|
|
455
|
+
|
|
456
|
+
def description; end
|
|
457
|
+
def failure_message; end
|
|
458
|
+
def failure_message_when_negated; end
|
|
459
|
+
def method_missing(*_arg0); end
|
|
145
460
|
end
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
def
|
|
151
|
-
def
|
|
152
|
-
def
|
|
153
|
-
def
|
|
154
|
-
|
|
461
|
+
|
|
462
|
+
class RSpec::Matchers::AliasedMatcherWithOperatorSupport < ::RSpec::Matchers::AliasedMatcher; end
|
|
463
|
+
|
|
464
|
+
class RSpec::Matchers::AliasedNegatedMatcher < ::RSpec::Matchers::AliasedMatcher
|
|
465
|
+
def does_not_match?(*args, &block); end
|
|
466
|
+
def failure_message; end
|
|
467
|
+
def failure_message_when_negated; end
|
|
468
|
+
def matches?(*args, &block); end
|
|
469
|
+
|
|
470
|
+
private
|
|
471
|
+
|
|
472
|
+
def optimal_failure_message(same, inverted); end
|
|
155
473
|
end
|
|
156
|
-
|
|
474
|
+
|
|
475
|
+
RSpec::Matchers::AliasedNegatedMatcher::DefaultFailureMessages = RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
476
|
+
RSpec::Matchers::BE_PREDICATE_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
477
|
+
module RSpec::Matchers::BuiltIn; end
|
|
478
|
+
|
|
479
|
+
class RSpec::Matchers::BuiltIn::All < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
480
|
+
def initialize(matcher); end
|
|
481
|
+
|
|
482
|
+
def description; end
|
|
483
|
+
def does_not_match?(_actual); end
|
|
484
|
+
def failed_objects; end
|
|
485
|
+
def failure_message; end
|
|
486
|
+
def matcher; end
|
|
487
|
+
|
|
488
|
+
private
|
|
489
|
+
|
|
490
|
+
def add_new_line_if_needed(message); end
|
|
491
|
+
def failure_message_for_item(index, failure_message); end
|
|
492
|
+
def indent_multiline_message(message); end
|
|
493
|
+
def index_failed_objects; end
|
|
494
|
+
def initialize_copy(other); end
|
|
495
|
+
def iterable?; end
|
|
496
|
+
def match(_expected, _actual); end
|
|
157
497
|
end
|
|
498
|
+
|
|
158
499
|
class RSpec::Matchers::BuiltIn::BaseMatcher
|
|
500
|
+
include ::RSpec::Matchers::Composable
|
|
501
|
+
include ::RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
|
|
502
|
+
include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
503
|
+
|
|
504
|
+
def initialize(expected = T.unsafe(nil)); end
|
|
505
|
+
|
|
159
506
|
def actual; end
|
|
160
507
|
def actual_formatted; end
|
|
161
|
-
def assert_ivars(*expected_ivars); end
|
|
162
508
|
def description; end
|
|
163
509
|
def diffable?; end
|
|
164
510
|
def expected; end
|
|
165
511
|
def expected_formatted; end
|
|
166
512
|
def expects_call_stack_jump?; end
|
|
167
|
-
def initialize(expected = nil); end
|
|
168
513
|
def match_unless_raises(*exceptions); end
|
|
169
514
|
def matcher_name; end
|
|
170
|
-
def matcher_name=(
|
|
515
|
+
def matcher_name=(_arg0); end
|
|
171
516
|
def matches?(actual); end
|
|
172
517
|
def present_ivars; end
|
|
173
518
|
def rescued_exception; end
|
|
174
|
-
def self.matcher_name; end
|
|
175
|
-
def self.underscore(camel_cased_word); end
|
|
176
519
|
def supports_block_expectations?; end
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
520
|
+
|
|
521
|
+
private
|
|
522
|
+
|
|
523
|
+
def assert_ivars(*expected_ivars); end
|
|
524
|
+
|
|
525
|
+
class << self
|
|
526
|
+
def matcher_name; end
|
|
527
|
+
|
|
528
|
+
private
|
|
529
|
+
|
|
530
|
+
def underscore(camel_cased_word); end
|
|
531
|
+
end
|
|
184
532
|
end
|
|
533
|
+
|
|
185
534
|
module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
186
535
|
def failure_message; end
|
|
187
536
|
def failure_message_when_negated; end
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
def define(name, &declarations); end
|
|
193
|
-
def define_negated_matcher(negated_name, base_name, &description_override); end
|
|
194
|
-
def matcher(name, &declarations); end
|
|
195
|
-
def warn_about_block_args(name, declarations); end
|
|
196
|
-
end
|
|
197
|
-
module RSpec::Matchers::DSL::Macros
|
|
198
|
-
def assign_attributes(attr_names); end
|
|
199
|
-
def chain(method_name, *attr_names, &definition); end
|
|
200
|
-
def define_user_override(method_name, user_def, &our_def); end
|
|
201
|
-
def description(&definition); end
|
|
202
|
-
def diffable; end
|
|
203
|
-
def failure_message(&definition); end
|
|
204
|
-
def failure_message_when_negated(&definition); end
|
|
205
|
-
def match(options = nil, &match_block); end
|
|
206
|
-
def match_unless_raises(expected_exception = nil, &match_block); end
|
|
207
|
-
def match_when_negated(options = nil, &match_block); end
|
|
208
|
-
def supports_block_expectations; end
|
|
209
|
-
end
|
|
210
|
-
module RSpec::Matchers::DSL::Macros::Deprecated
|
|
211
|
-
def failure_message_for_should(&definition); end
|
|
212
|
-
def failure_message_for_should_not(&definition); end
|
|
213
|
-
def match_for_should(&definition); end
|
|
214
|
-
def match_for_should_not(&definition); end
|
|
215
|
-
end
|
|
216
|
-
module RSpec::Matchers::DSL::DefaultImplementations
|
|
217
|
-
def chained_method_clause_sentences; end
|
|
218
|
-
def description; end
|
|
219
|
-
def diffable?; end
|
|
220
|
-
def expects_call_stack_jump?; end
|
|
221
|
-
def supports_block_expectations?; end
|
|
222
|
-
include RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
223
|
-
end
|
|
224
|
-
class RSpec::Matchers::DSL::Matcher
|
|
225
|
-
def actual; end
|
|
226
|
-
def actual_arg_for(block); end
|
|
227
|
-
def block_arg; end
|
|
228
|
-
def expected; end
|
|
229
|
-
def expected_as_array; end
|
|
230
|
-
def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end
|
|
231
|
-
def inspect; end
|
|
232
|
-
def method_missing(method, *args, &block); end
|
|
233
|
-
def name; end
|
|
234
|
-
def rescued_exception; end
|
|
235
|
-
def respond_to_missing?(method, include_private = nil); end
|
|
236
|
-
extend RSpec::Matchers::DSL::Macros
|
|
237
|
-
extend RSpec::Matchers::DSL::Macros::Deprecated
|
|
238
|
-
include RSpec::Matchers
|
|
239
|
-
include RSpec::Matchers::Composable
|
|
240
|
-
include RSpec::Matchers::DSL::DefaultImplementations
|
|
241
|
-
end
|
|
242
|
-
class RSpec::Matchers::MatcherDelegator
|
|
243
|
-
def base_matcher; end
|
|
244
|
-
def initialize(base_matcher); end
|
|
245
|
-
def initialize_copy(other); end
|
|
246
|
-
def method_missing(*args, &block); end
|
|
247
|
-
def respond_to_missing?(name, include_all = nil); end
|
|
248
|
-
include RSpec::Matchers::Composable
|
|
249
|
-
end
|
|
250
|
-
class RSpec::Matchers::AliasedMatcher < RSpec::Matchers::MatcherDelegator
|
|
251
|
-
def description; end
|
|
252
|
-
def failure_message; end
|
|
253
|
-
def failure_message_when_negated; end
|
|
254
|
-
def initialize(base_matcher, description_block); end
|
|
255
|
-
def method_missing(*arg0); end
|
|
256
|
-
end
|
|
257
|
-
class RSpec::Matchers::AliasedMatcherWithOperatorSupport < RSpec::Matchers::AliasedMatcher
|
|
258
|
-
end
|
|
259
|
-
class RSpec::Matchers::AliasedNegatedMatcher < RSpec::Matchers::AliasedMatcher
|
|
260
|
-
def does_not_match?(*args, &block); end
|
|
261
|
-
def failure_message; end
|
|
262
|
-
def failure_message_when_negated; end
|
|
263
|
-
def matches?(*args, &block); end
|
|
264
|
-
def optimal_failure_message(same, inverted); end
|
|
265
|
-
end
|
|
266
|
-
class RSpec::Matchers::ExpectedsForMultipleDiffs
|
|
267
|
-
def diffs(differ, actual); end
|
|
268
|
-
def initialize(expected_list); end
|
|
269
|
-
def message_with_diff(message, differ, actual); end
|
|
270
|
-
def self.diff_label_for(matcher); end
|
|
271
|
-
def self.for_many_matchers(matchers); end
|
|
272
|
-
def self.from(expected); end
|
|
273
|
-
def self.truncated(description); end
|
|
274
|
-
end
|
|
275
|
-
module RSpec::Support
|
|
276
|
-
def self.require_rspec_expectations(f); end
|
|
277
|
-
def self.require_rspec_matchers(f); end
|
|
278
|
-
end
|
|
279
|
-
module RSpec::Expectations
|
|
280
|
-
def self.configuration; end
|
|
281
|
-
def self.differ; end
|
|
282
|
-
def self.fail_with(message, expected = nil, actual = nil); end
|
|
283
|
-
end
|
|
284
|
-
class RSpec::Expectations::ExpectationTarget
|
|
285
|
-
def initialize(value); end
|
|
286
|
-
def self.for(value, block); end
|
|
287
|
-
def target; end
|
|
288
|
-
include RSpec::Expectations::ExpectationTarget::InstanceMethods
|
|
289
|
-
end
|
|
290
|
-
module RSpec::Expectations::ExpectationTarget::UndefinedValue
|
|
291
|
-
end
|
|
292
|
-
module RSpec::Expectations::ExpectationTarget::InstanceMethods
|
|
293
|
-
def not_to(matcher = nil, message = nil, &block); end
|
|
294
|
-
def prevent_operator_matchers(verb); end
|
|
295
|
-
def to(matcher = nil, message = nil, &block); end
|
|
296
|
-
def to_not(matcher = nil, message = nil, &block); end
|
|
297
|
-
end
|
|
298
|
-
class RSpec::Expectations::BlockExpectationTarget < RSpec::Expectations::ExpectationTarget
|
|
299
|
-
def enforce_block_expectation(matcher); end
|
|
300
|
-
def not_to(matcher, message = nil, &block); end
|
|
301
|
-
def supports_block_expectations?(matcher); end
|
|
302
|
-
def to(matcher, message = nil, &block); end
|
|
303
|
-
def to_not(matcher, message = nil, &block); end
|
|
304
|
-
end
|
|
305
|
-
module RSpec::Expectations::Syntax
|
|
306
|
-
def default_should_host; end
|
|
307
|
-
def disable_expect(syntax_host = nil); end
|
|
308
|
-
def disable_should(syntax_host = nil); end
|
|
309
|
-
def enable_expect(syntax_host = nil); end
|
|
310
|
-
def enable_should(syntax_host = nil); end
|
|
311
|
-
def expect_enabled?(syntax_host = nil); end
|
|
312
|
-
def self.default_should_host; end
|
|
313
|
-
def self.disable_expect(syntax_host = nil); end
|
|
314
|
-
def self.disable_should(syntax_host = nil); end
|
|
315
|
-
def self.enable_expect(syntax_host = nil); end
|
|
316
|
-
def self.enable_should(syntax_host = nil); end
|
|
317
|
-
def self.expect_enabled?(syntax_host = nil); end
|
|
318
|
-
def self.should_enabled?(syntax_host = nil); end
|
|
319
|
-
def self.warn_about_should!; end
|
|
320
|
-
def self.warn_about_should_unless_configured(method_name); end
|
|
321
|
-
def should_enabled?(syntax_host = nil); end
|
|
322
|
-
def warn_about_should!; end
|
|
323
|
-
def warn_about_should_unless_configured(method_name); end
|
|
324
|
-
end
|
|
325
|
-
class BasicObject
|
|
326
|
-
def should(matcher = nil, message = nil, &block); end
|
|
327
|
-
def should_not(matcher = nil, message = nil, &block); end
|
|
328
|
-
end
|
|
329
|
-
class RSpec::Expectations::Configuration
|
|
330
|
-
def add_should_and_should_not_to(*modules); end
|
|
331
|
-
def backtrace_formatter; end
|
|
332
|
-
def backtrace_formatter=(arg0); end
|
|
333
|
-
def color?; end
|
|
334
|
-
def false_positives_handler; end
|
|
335
|
-
def include_chain_clauses_in_custom_matcher_descriptions=(arg0); end
|
|
336
|
-
def include_chain_clauses_in_custom_matcher_descriptions?; end
|
|
337
|
-
def initialize; end
|
|
338
|
-
def max_formatted_output_length=(length); end
|
|
339
|
-
def on_potential_false_positives; end
|
|
340
|
-
def on_potential_false_positives=(behavior); end
|
|
341
|
-
def reset_syntaxes_to_default; end
|
|
342
|
-
def syntax; end
|
|
343
|
-
def syntax=(values); end
|
|
344
|
-
def warn_about_potential_false_positives=(boolean); end
|
|
345
|
-
def warn_about_potential_false_positives?; end
|
|
346
|
-
end
|
|
347
|
-
module RSpec::Expectations::Configuration::NullBacktraceFormatter
|
|
348
|
-
def self.format_backtrace(backtrace); end
|
|
349
|
-
end
|
|
350
|
-
class InvalidName___Class_0x00___Differ_1
|
|
351
|
-
end
|
|
352
|
-
module RSpec::Expectations::ExpectationHelper
|
|
353
|
-
def self.check_message(msg); end
|
|
354
|
-
def self.handle_failure(matcher, message, failure_message_method); end
|
|
355
|
-
def self.modern_matcher_from(matcher); end
|
|
356
|
-
def self.with_matcher(handler, matcher, message); end
|
|
357
|
-
end
|
|
358
|
-
class RSpec::Expectations::PositiveExpectationHandler
|
|
359
|
-
def self.handle_matcher(actual, initial_matcher, message = nil, &block); end
|
|
360
|
-
def self.opposite_should_method; end
|
|
361
|
-
def self.should_method; end
|
|
362
|
-
def self.verb; end
|
|
363
|
-
end
|
|
364
|
-
class RSpec::Expectations::NegativeExpectationHandler
|
|
365
|
-
def self.does_not_match?(matcher, actual, &block); end
|
|
366
|
-
def self.handle_matcher(actual, initial_matcher, message = nil, &block); end
|
|
367
|
-
def self.opposite_should_method; end
|
|
368
|
-
def self.should_method; end
|
|
369
|
-
def self.verb; end
|
|
370
|
-
end
|
|
371
|
-
class RSpec::Expectations::LegacyMatcherAdapter < RSpec::Matchers::MatcherDelegator
|
|
372
|
-
def initialize(matcher); end
|
|
373
|
-
def self.wrap(matcher); end
|
|
537
|
+
|
|
538
|
+
class << self
|
|
539
|
+
def has_default_failure_messages?(matcher); end
|
|
540
|
+
end
|
|
374
541
|
end
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
542
|
+
|
|
543
|
+
module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
|
|
544
|
+
private
|
|
545
|
+
|
|
546
|
+
def improve_hash_formatting(inspect_string); end
|
|
547
|
+
|
|
548
|
+
class << self
|
|
549
|
+
def improve_hash_formatting(inspect_string); end
|
|
550
|
+
end
|
|
379
551
|
end
|
|
380
|
-
|
|
552
|
+
|
|
553
|
+
RSpec::Matchers::BuiltIn::BaseMatcher::UNDEFINED = T.let(T.unsafe(nil), Object)
|
|
554
|
+
|
|
555
|
+
class RSpec::Matchers::BuiltIn::Be < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
556
|
+
include ::RSpec::Matchers::BuiltIn::BeHelpers
|
|
557
|
+
|
|
558
|
+
def initialize(*args); end
|
|
559
|
+
|
|
560
|
+
def <(operand); end
|
|
561
|
+
def <=(operand); end
|
|
562
|
+
def ==(operand); end
|
|
563
|
+
def ===(operand); end
|
|
564
|
+
def =~(operand); end
|
|
565
|
+
def >(operand); end
|
|
566
|
+
def >=(operand); end
|
|
381
567
|
def failure_message; end
|
|
382
568
|
def failure_message_when_negated; end
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
end
|
|
387
|
-
class RSpec::Expectations::ExpectationNotMetError < Exception
|
|
388
|
-
end
|
|
389
|
-
class RSpec::Expectations::MultipleExpectationsNotMetError < RSpec::Expectations::ExpectationNotMetError
|
|
390
|
-
def aggregation_block_label; end
|
|
391
|
-
def aggregation_metadata; end
|
|
392
|
-
def all_exceptions; end
|
|
393
|
-
def block_description; end
|
|
394
|
-
def enumerated(exceptions, index_offset); end
|
|
395
|
-
def enumerated_errors; end
|
|
396
|
-
def enumerated_failures; end
|
|
397
|
-
def exception_count_description; end
|
|
398
|
-
def failures; end
|
|
399
|
-
def indentation; end
|
|
400
|
-
def indented(failure_message, index); end
|
|
401
|
-
def index_label(index); end
|
|
402
|
-
def initialize(failure_aggregator); end
|
|
403
|
-
def longest_index_label_width; end
|
|
404
|
-
def message; end
|
|
405
|
-
def other_errors; end
|
|
406
|
-
def pluralize(noun, count); end
|
|
407
|
-
def summary; end
|
|
408
|
-
def width_of_label(index); end
|
|
409
|
-
end
|
|
410
|
-
class RSpec::Expectations::BlockSnippetExtractor
|
|
411
|
-
def beginning_line_number; end
|
|
412
|
-
def block_token_extractor; end
|
|
413
|
-
def body_content_lines; end
|
|
414
|
-
def file_path; end
|
|
415
|
-
def initialize(proc, method_name); end
|
|
416
|
-
def method_name; end
|
|
417
|
-
def proc; end
|
|
418
|
-
def raw_body_lines; end
|
|
419
|
-
def raw_body_snippet; end
|
|
420
|
-
def self.try_extracting_single_line_body_of(proc, method_name); end
|
|
421
|
-
def source; end
|
|
422
|
-
def source_location; end
|
|
423
|
-
end
|
|
424
|
-
class RSpec::Expectations::BlockSnippetExtractor::Error < StandardError
|
|
425
|
-
end
|
|
426
|
-
class RSpec::Expectations::BlockSnippetExtractor::TargetNotFoundError < RSpec::Expectations::BlockSnippetExtractor::Error
|
|
427
|
-
end
|
|
428
|
-
class RSpec::Expectations::BlockSnippetExtractor::AmbiguousTargetError < RSpec::Expectations::BlockSnippetExtractor::Error
|
|
429
|
-
end
|
|
430
|
-
class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < Struct
|
|
431
|
-
def after_beginning_of_args_state(token); end
|
|
432
|
-
def after_beginning_of_body_state(token); end
|
|
433
|
-
def after_method_call_state(token); end
|
|
434
|
-
def after_opener_state(token); end
|
|
435
|
-
def beginning_line_number; end
|
|
436
|
-
def beginning_line_number=(_); end
|
|
437
|
-
def block_locator; end
|
|
438
|
-
def body_tokens; end
|
|
439
|
-
def correct_block?(body_tokens); end
|
|
440
|
-
def finalize_pending_tokens!; end
|
|
441
|
-
def finish!; end
|
|
442
|
-
def finish_or_find_next_block_if_incorrect!; end
|
|
443
|
-
def handle_closer_token(token); end
|
|
444
|
-
def handle_opener_token(token); end
|
|
445
|
-
def initial_state(token); end
|
|
446
|
-
def initialize(*arg0); end
|
|
447
|
-
def invoke_state_handler(token); end
|
|
448
|
-
def method_name; end
|
|
449
|
-
def method_name=(_); end
|
|
450
|
-
def opener_token?(token); end
|
|
451
|
-
def opener_token_stack; end
|
|
452
|
-
def parse!; end
|
|
453
|
-
def pending_tokens; end
|
|
454
|
-
def pipe_token?(token); end
|
|
455
|
-
def self.[](*arg0); end
|
|
456
|
-
def self.inspect; end
|
|
457
|
-
def self.members; end
|
|
458
|
-
def self.new(*arg0); end
|
|
459
|
-
def source; end
|
|
460
|
-
def source=(_); end
|
|
461
|
-
def state; end
|
|
462
|
-
end
|
|
463
|
-
class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < Struct
|
|
464
|
-
def beginning_line_number; end
|
|
465
|
-
def beginning_line_number=(_); end
|
|
466
|
-
def block_body_node; end
|
|
467
|
-
def block_wrapper_node; end
|
|
468
|
-
def body_content_locations; end
|
|
469
|
-
def candidate_block_wrapper_nodes; end
|
|
470
|
-
def candidate_method_ident_nodes; end
|
|
471
|
-
def method_call_location; end
|
|
472
|
-
def method_ident_node; end
|
|
473
|
-
def method_ident_node?(node); end
|
|
474
|
-
def method_name; end
|
|
475
|
-
def method_name=(_); end
|
|
476
|
-
def self.[](*arg0); end
|
|
477
|
-
def self.inspect; end
|
|
478
|
-
def self.members; end
|
|
479
|
-
def self.new(*arg0); end
|
|
480
|
-
def source; end
|
|
481
|
-
def source=(_); end
|
|
482
|
-
end
|
|
483
|
-
class RSpec::Expectations::FailureAggregator
|
|
484
|
-
def aggregate; end
|
|
485
|
-
def assign_backtrace(failure); end
|
|
486
|
-
def block_label; end
|
|
487
|
-
def call(failure, options); end
|
|
488
|
-
def failures; end
|
|
489
|
-
def initialize(block_label, metadata); end
|
|
490
|
-
def metadata; end
|
|
491
|
-
def notify_aggregated_failures; end
|
|
492
|
-
def other_errors; end
|
|
569
|
+
|
|
570
|
+
private
|
|
571
|
+
|
|
572
|
+
def match(_, actual); end
|
|
493
573
|
end
|
|
494
|
-
|
|
574
|
+
|
|
575
|
+
class RSpec::Matchers::BuiltIn::BeAKindOf < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
576
|
+
private
|
|
577
|
+
|
|
495
578
|
def match(expected, actual); end
|
|
496
579
|
end
|
|
497
|
-
|
|
580
|
+
|
|
581
|
+
class RSpec::Matchers::BuiltIn::BeAnInstanceOf < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
498
582
|
def description; end
|
|
583
|
+
|
|
584
|
+
private
|
|
585
|
+
|
|
499
586
|
def match(expected, actual); end
|
|
500
587
|
end
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
def
|
|
588
|
+
|
|
589
|
+
class RSpec::Matchers::BuiltIn::BeBetween < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
590
|
+
def initialize(min, max); end
|
|
591
|
+
|
|
504
592
|
def description; end
|
|
505
593
|
def exclusive; end
|
|
506
594
|
def failure_message; end
|
|
507
595
|
def inclusive; end
|
|
508
|
-
def initialize(min, max); end
|
|
509
596
|
def matches?(actual); end
|
|
597
|
+
|
|
598
|
+
private
|
|
599
|
+
|
|
600
|
+
def comparable?; end
|
|
601
|
+
def compare; end
|
|
510
602
|
def not_comparable_clause; end
|
|
511
603
|
end
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
end
|
|
517
|
-
|
|
604
|
+
|
|
605
|
+
class RSpec::Matchers::BuiltIn::BeComparedTo < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
606
|
+
include ::RSpec::Matchers::BuiltIn::BeHelpers
|
|
607
|
+
|
|
608
|
+
def initialize(operand, operator); end
|
|
609
|
+
|
|
610
|
+
def description; end
|
|
611
|
+
def does_not_match?(actual); end
|
|
518
612
|
def failure_message; end
|
|
519
613
|
def failure_message_when_negated; end
|
|
520
|
-
def
|
|
614
|
+
def matches?(actual); end
|
|
615
|
+
|
|
616
|
+
private
|
|
617
|
+
|
|
618
|
+
def perform_match(actual); end
|
|
521
619
|
end
|
|
522
|
-
|
|
620
|
+
|
|
621
|
+
class RSpec::Matchers::BuiltIn::BeFalsey < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
523
622
|
def failure_message; end
|
|
524
623
|
def failure_message_when_negated; end
|
|
624
|
+
|
|
625
|
+
private
|
|
626
|
+
|
|
525
627
|
def match(_, actual); end
|
|
526
628
|
end
|
|
629
|
+
|
|
527
630
|
module RSpec::Matchers::BuiltIn::BeHelpers
|
|
631
|
+
private
|
|
632
|
+
|
|
528
633
|
def args_to_s; end
|
|
529
634
|
def args_to_sentence; end
|
|
530
635
|
def expected_to_sentence; end
|
|
531
636
|
def inspected_args; end
|
|
532
637
|
def parenthesize(string); end
|
|
533
638
|
end
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
def <=(operand); end
|
|
537
|
-
def ==(operand); end
|
|
538
|
-
def ===(operand); end
|
|
539
|
-
def =~(operand); end
|
|
540
|
-
def >(operand); end
|
|
541
|
-
def >=(operand); end
|
|
639
|
+
|
|
640
|
+
class RSpec::Matchers::BuiltIn::BeNil < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
542
641
|
def failure_message; end
|
|
543
642
|
def failure_message_when_negated; end
|
|
544
|
-
|
|
643
|
+
|
|
644
|
+
private
|
|
645
|
+
|
|
545
646
|
def match(_, actual); end
|
|
546
|
-
include RSpec::Matchers::BuiltIn::BeHelpers
|
|
547
|
-
end
|
|
548
|
-
class RSpec::Matchers::BuiltIn::BeComparedTo < RSpec::Matchers::BuiltIn::BaseMatcher
|
|
549
|
-
def description; end
|
|
550
|
-
def does_not_match?(actual); end
|
|
551
|
-
def failure_message; end
|
|
552
|
-
def failure_message_when_negated; end
|
|
553
|
-
def initialize(operand, operator); end
|
|
554
|
-
def matches?(actual); end
|
|
555
|
-
def perform_match(actual); end
|
|
556
|
-
include RSpec::Matchers::BuiltIn::BeHelpers
|
|
557
647
|
end
|
|
558
|
-
|
|
648
|
+
|
|
649
|
+
class RSpec::Matchers::BuiltIn::BePredicate < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
650
|
+
include ::RSpec::Matchers::BuiltIn::BeHelpers
|
|
651
|
+
|
|
652
|
+
def initialize(*args, **_arg1, &block); end
|
|
653
|
+
|
|
559
654
|
def description; end
|
|
560
655
|
def does_not_match?(actual, &block); end
|
|
561
656
|
def failure_message; end
|
|
562
|
-
def failure_message_expecting(value); end
|
|
563
657
|
def failure_message_when_negated; end
|
|
564
|
-
def initialize(*args, &block); end
|
|
565
658
|
def matches?(actual, &block); end
|
|
659
|
+
|
|
660
|
+
private
|
|
661
|
+
|
|
662
|
+
def failure_message_expecting(value); end
|
|
566
663
|
def parse_expected(expected); end
|
|
567
664
|
def predicate; end
|
|
568
665
|
def predicate_accessible?; end
|
|
@@ -572,162 +669,246 @@ class RSpec::Matchers::BuiltIn::BePredicate < RSpec::Matchers::BuiltIn::BaseMatc
|
|
|
572
669
|
def present_tense_predicate; end
|
|
573
670
|
def private_predicate?; end
|
|
574
671
|
def validity_message; end
|
|
575
|
-
include RSpec::Matchers::BuiltIn::BeHelpers
|
|
576
672
|
end
|
|
577
|
-
|
|
578
|
-
|
|
673
|
+
|
|
674
|
+
class RSpec::Matchers::BuiltIn::BeTruthy < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
579
675
|
def failure_message; end
|
|
580
676
|
def failure_message_when_negated; end
|
|
677
|
+
|
|
678
|
+
private
|
|
679
|
+
|
|
680
|
+
def match(_, actual); end
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
class RSpec::Matchers::BuiltIn::BeWithin < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
581
684
|
def initialize(delta); end
|
|
685
|
+
|
|
686
|
+
def description; end
|
|
687
|
+
def failure_message; end
|
|
688
|
+
def failure_message_when_negated; end
|
|
582
689
|
def matches?(actual); end
|
|
690
|
+
def of(expected); end
|
|
691
|
+
def percent_of(expected); end
|
|
692
|
+
|
|
693
|
+
private
|
|
694
|
+
|
|
583
695
|
def needs_expected; end
|
|
584
696
|
def not_numeric_clause; end
|
|
585
697
|
def numeric?; end
|
|
586
|
-
def of(expected); end
|
|
587
|
-
def percent_of(expected); end
|
|
588
698
|
end
|
|
589
|
-
|
|
699
|
+
|
|
700
|
+
module RSpec::Matchers::BuiltIn::CaptureStderr
|
|
701
|
+
class << self
|
|
702
|
+
def capture(block); end
|
|
703
|
+
def name; end
|
|
704
|
+
end
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
module RSpec::Matchers::BuiltIn::CaptureStdout
|
|
708
|
+
class << self
|
|
709
|
+
def capture(block); end
|
|
710
|
+
def name; end
|
|
711
|
+
end
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
class RSpec::Matchers::BuiltIn::CaptureStreamToTempfile < ::Struct
|
|
715
|
+
def capture(block); end
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
719
|
+
def initialize(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
|
720
|
+
|
|
590
721
|
def by(expected_delta); end
|
|
591
722
|
def by_at_least(minimum); end
|
|
592
723
|
def by_at_most(maximum); end
|
|
593
|
-
def change_details; end
|
|
594
724
|
def description; end
|
|
595
725
|
def does_not_match?(event_proc); end
|
|
596
726
|
def failure_message; end
|
|
597
727
|
def failure_message_when_negated; end
|
|
598
728
|
def from(value); end
|
|
599
|
-
def initialize(receiver = nil, message = nil, &block); end
|
|
600
729
|
def matches?(event_proc); end
|
|
730
|
+
def supports_block_expectations?; end
|
|
731
|
+
def to(value); end
|
|
732
|
+
|
|
733
|
+
private
|
|
734
|
+
|
|
735
|
+
def change_details; end
|
|
601
736
|
def negative_failure_reason; end
|
|
602
737
|
def perform_change(event_proc); end
|
|
603
738
|
def positive_failure_reason; end
|
|
604
739
|
def raise_block_syntax_error; end
|
|
605
|
-
def supports_block_expectations?; end
|
|
606
|
-
def to(value); end
|
|
607
|
-
end
|
|
608
|
-
class RSpec::Matchers::BuiltIn::ChangeRelatively < RSpec::Matchers::BuiltIn::BaseMatcher
|
|
609
|
-
def description; end
|
|
610
|
-
def does_not_match?(_event_proc); end
|
|
611
|
-
def failure_message; end
|
|
612
|
-
def failure_reason; end
|
|
613
|
-
def initialize(change_details, expected_delta, relativity, &comparer); end
|
|
614
|
-
def matches?(event_proc); end
|
|
615
|
-
def supports_block_expectations?; end
|
|
616
740
|
end
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
def
|
|
620
|
-
|
|
621
|
-
def
|
|
622
|
-
def
|
|
623
|
-
def
|
|
624
|
-
def initialize(change_details, from, to); end
|
|
625
|
-
def matches?(event_proc); end
|
|
626
|
-
def matches_after?; end
|
|
627
|
-
def not_given_a_block_failure; end
|
|
741
|
+
|
|
742
|
+
class RSpec::Matchers::BuiltIn::ChangeDetails
|
|
743
|
+
def initialize(matcher_name, receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
|
744
|
+
|
|
745
|
+
def actual_after; end
|
|
746
|
+
def actual_delta; end
|
|
747
|
+
def changed?; end
|
|
628
748
|
def perform_change(event_proc); end
|
|
629
|
-
def
|
|
749
|
+
def value_representation; end
|
|
750
|
+
|
|
751
|
+
private
|
|
752
|
+
|
|
753
|
+
def evaluate_value_proc; end
|
|
754
|
+
def extract_value_block_snippet; end
|
|
755
|
+
def message_notation(receiver, message); end
|
|
630
756
|
end
|
|
631
|
-
|
|
632
|
-
|
|
757
|
+
|
|
758
|
+
class RSpec::Matchers::BuiltIn::ChangeFromValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange
|
|
759
|
+
def initialize(change_details, expected_before); end
|
|
760
|
+
|
|
633
761
|
def does_not_match?(event_proc); end
|
|
634
762
|
def failure_message_when_negated; end
|
|
635
|
-
def initialize(change_details, expected_before); end
|
|
636
763
|
def to(value); end
|
|
637
|
-
|
|
638
|
-
|
|
764
|
+
|
|
765
|
+
private
|
|
766
|
+
|
|
639
767
|
def change_description; end
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
771
|
+
def initialize(change_details, expected_delta, relativity, &comparer); end
|
|
772
|
+
|
|
773
|
+
def description; end
|
|
640
774
|
def does_not_match?(_event_proc); end
|
|
641
|
-
def
|
|
642
|
-
def
|
|
775
|
+
def failure_message; end
|
|
776
|
+
def matches?(event_proc); end
|
|
777
|
+
def supports_block_expectations?; end
|
|
778
|
+
|
|
779
|
+
private
|
|
780
|
+
|
|
781
|
+
def failure_reason; end
|
|
643
782
|
end
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
def
|
|
647
|
-
|
|
648
|
-
def
|
|
649
|
-
def
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
def
|
|
783
|
+
|
|
784
|
+
class RSpec::Matchers::BuiltIn::ChangeToValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange
|
|
785
|
+
def initialize(change_details, expected_after); end
|
|
786
|
+
|
|
787
|
+
def does_not_match?(_event_proc); end
|
|
788
|
+
def from(value); end
|
|
789
|
+
|
|
790
|
+
private
|
|
791
|
+
|
|
792
|
+
def change_description; end
|
|
654
793
|
end
|
|
655
|
-
|
|
656
|
-
|
|
794
|
+
|
|
795
|
+
class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
796
|
+
def initialize(matcher_1, matcher_2); end
|
|
797
|
+
|
|
657
798
|
def description; end
|
|
658
799
|
def diffable?; end
|
|
659
|
-
def diffable_matcher_list; end
|
|
660
|
-
def diffable_matcher_list_for(matcher); end
|
|
661
800
|
def does_not_match?(_actual); end
|
|
662
801
|
def evaluator; end
|
|
663
802
|
def expected; end
|
|
664
803
|
def expects_call_stack_jump?; end
|
|
804
|
+
def matcher_1; end
|
|
805
|
+
def matcher_2; end
|
|
806
|
+
def supports_block_expectations?; end
|
|
807
|
+
|
|
808
|
+
protected
|
|
809
|
+
|
|
810
|
+
def diffable_matcher_list; end
|
|
811
|
+
|
|
812
|
+
private
|
|
813
|
+
|
|
814
|
+
def compound_failure_message; end
|
|
815
|
+
def diffable_matcher_list_for(matcher); end
|
|
665
816
|
def indent_multiline_message(message); end
|
|
666
|
-
def initialize(matcher_1, matcher_2); end
|
|
667
817
|
def initialize_copy(other); end
|
|
668
818
|
def match(_expected, actual); end
|
|
669
|
-
def matcher_1; end
|
|
670
819
|
def matcher_1_matches?; end
|
|
671
|
-
def matcher_2; end
|
|
672
820
|
def matcher_2_matches?; end
|
|
673
821
|
def matcher_is_diffable?(matcher); end
|
|
674
822
|
def matcher_supports_block_expectations?(matcher); end
|
|
675
|
-
def supports_block_expectations?; end
|
|
676
823
|
end
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
def
|
|
824
|
+
|
|
825
|
+
class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound
|
|
826
|
+
def failure_message; end
|
|
827
|
+
|
|
828
|
+
private
|
|
829
|
+
|
|
830
|
+
def conjunction; end
|
|
831
|
+
def match(*_arg0); end
|
|
680
832
|
end
|
|
833
|
+
|
|
681
834
|
class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator
|
|
682
835
|
def initialize(actual, matcher_1, matcher_2); end
|
|
683
|
-
|
|
836
|
+
|
|
684
837
|
def matcher_matches?(matcher); end
|
|
838
|
+
|
|
839
|
+
private
|
|
840
|
+
|
|
841
|
+
def inner_matcher_block(outer_args); end
|
|
685
842
|
def order_block_matchers; end
|
|
686
|
-
|
|
843
|
+
|
|
844
|
+
class << self
|
|
845
|
+
def matcher_expects_call_stack_jump?(matcher); end
|
|
846
|
+
end
|
|
687
847
|
end
|
|
688
|
-
|
|
689
|
-
|
|
848
|
+
|
|
849
|
+
class RSpec::Matchers::BuiltIn::Compound::Or < ::RSpec::Matchers::BuiltIn::Compound
|
|
690
850
|
def failure_message; end
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
851
|
+
|
|
852
|
+
private
|
|
853
|
+
|
|
694
854
|
def conjunction; end
|
|
695
|
-
def
|
|
696
|
-
|
|
855
|
+
def match(*_arg0); end
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
class RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator
|
|
859
|
+
def initialize(actual, *_arg1); end
|
|
860
|
+
|
|
861
|
+
def matcher_matches?(matcher); end
|
|
697
862
|
end
|
|
698
|
-
|
|
863
|
+
|
|
864
|
+
class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
865
|
+
def description; end
|
|
866
|
+
def failure_message; end
|
|
867
|
+
def failure_message_when_negated; end
|
|
868
|
+
|
|
869
|
+
private
|
|
870
|
+
|
|
699
871
|
def actual_collection_line; end
|
|
700
872
|
def best_solution; end
|
|
701
873
|
def convert_actual_to_an_array; end
|
|
702
|
-
def describe_collection(collection, surface_descriptions = nil); end
|
|
703
|
-
def description; end
|
|
874
|
+
def describe_collection(collection, surface_descriptions = T.unsafe(nil)); end
|
|
704
875
|
def expected_collection_line; end
|
|
705
876
|
def extra_elements_line; end
|
|
706
877
|
def extra_items; end
|
|
707
|
-
def failure_message; end
|
|
708
|
-
def failure_message_when_negated; end
|
|
709
878
|
def generate_failure_message; end
|
|
710
879
|
def match(_expected, _actual); end
|
|
711
880
|
def match_when_sorted?; end
|
|
712
|
-
def message_line(prefix, collection, surface_descriptions = nil); end
|
|
881
|
+
def message_line(prefix, collection, surface_descriptions = T.unsafe(nil)); end
|
|
713
882
|
def missing_elements_line; end
|
|
714
883
|
def missing_items; end
|
|
715
884
|
def pairings_maximizer; end
|
|
716
885
|
def safe_sort(array); end
|
|
717
886
|
def to_a_disallowed?(object); end
|
|
718
887
|
end
|
|
888
|
+
|
|
719
889
|
class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer
|
|
890
|
+
def initialize(expected_to_actual_matched_indexes, actual_to_expected_matched_indexes); end
|
|
891
|
+
|
|
720
892
|
def actual_to_expected_matched_indexes; end
|
|
893
|
+
def expected_to_actual_matched_indexes; end
|
|
894
|
+
def find_best_solution; end
|
|
895
|
+
def solution; end
|
|
896
|
+
|
|
897
|
+
private
|
|
898
|
+
|
|
721
899
|
def apply_pairing_to(indeterminates, original_matches, other_list_index); end
|
|
722
900
|
def best_solution_for_pairing(expected_index, actual_index); end
|
|
723
901
|
def categorize_indexes(indexes_to_categorize, other_indexes); end
|
|
724
|
-
def expected_to_actual_matched_indexes; end
|
|
725
|
-
def find_best_solution; end
|
|
726
|
-
def initialize(expected_to_actual_matched_indexes, actual_to_expected_matched_indexes); end
|
|
727
902
|
def reciprocal_single_match?(matches, index, other_list); end
|
|
728
|
-
def solution; end
|
|
729
903
|
end
|
|
730
|
-
|
|
904
|
+
|
|
905
|
+
class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::NullSolution
|
|
906
|
+
class << self
|
|
907
|
+
def worse_than?(_other); end
|
|
908
|
+
end
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < ::Struct
|
|
731
912
|
def +(derived_candidate_solution); end
|
|
732
913
|
def candidate?; end
|
|
733
914
|
def ideal?; end
|
|
@@ -735,99 +916,109 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < St
|
|
|
735
916
|
def indeterminate_actual_indexes=(_); end
|
|
736
917
|
def indeterminate_expected_indexes; end
|
|
737
918
|
def indeterminate_expected_indexes=(_); end
|
|
738
|
-
def self.[](*arg0); end
|
|
739
|
-
def self.inspect; end
|
|
740
|
-
def self.members; end
|
|
741
|
-
def self.new(*arg0); end
|
|
742
919
|
def unmatched_actual_indexes; end
|
|
743
920
|
def unmatched_actual_indexes=(_); end
|
|
744
921
|
def unmatched_expected_indexes; end
|
|
745
922
|
def unmatched_expected_indexes=(_); end
|
|
746
923
|
def unmatched_item_count; end
|
|
747
924
|
def worse_than?(other); end
|
|
925
|
+
|
|
926
|
+
class << self
|
|
927
|
+
def [](*_arg0); end
|
|
928
|
+
def inspect; end
|
|
929
|
+
def keyword_init?; end
|
|
930
|
+
def members; end
|
|
931
|
+
def new(*_arg0); end
|
|
932
|
+
end
|
|
748
933
|
end
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
end
|
|
752
|
-
class RSpec::Matchers::BuiltIn::Cover < RSpec::Matchers::BuiltIn::BaseMatcher
|
|
753
|
-
def does_not_match?(range); end
|
|
934
|
+
|
|
935
|
+
class RSpec::Matchers::BuiltIn::Cover < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
754
936
|
def initialize(*expected); end
|
|
937
|
+
|
|
938
|
+
def does_not_match?(range); end
|
|
755
939
|
def matches?(range); end
|
|
756
940
|
end
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
def match(_expected, actual); end
|
|
762
|
-
def subsets_comparable?; end
|
|
763
|
-
end
|
|
764
|
-
class RSpec::Matchers::BuiltIn::StartWith < RSpec::Matchers::BuiltIn::StartOrEndWith
|
|
765
|
-
def element_matches?; end
|
|
766
|
-
def subset_matches?; end
|
|
767
|
-
end
|
|
768
|
-
class RSpec::Matchers::BuiltIn::EndWith < RSpec::Matchers::BuiltIn::StartOrEndWith
|
|
941
|
+
|
|
942
|
+
class RSpec::Matchers::BuiltIn::EndWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith
|
|
943
|
+
private
|
|
944
|
+
|
|
769
945
|
def element_matches?; end
|
|
770
946
|
def subset_matches?; end
|
|
771
947
|
end
|
|
772
|
-
|
|
948
|
+
|
|
949
|
+
class RSpec::Matchers::BuiltIn::Eq < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
773
950
|
def description; end
|
|
774
951
|
def diffable?; end
|
|
775
952
|
def failure_message; end
|
|
776
953
|
def failure_message_when_negated; end
|
|
954
|
+
|
|
955
|
+
private
|
|
956
|
+
|
|
777
957
|
def match(expected, actual); end
|
|
778
958
|
end
|
|
779
|
-
|
|
959
|
+
|
|
960
|
+
class RSpec::Matchers::BuiltIn::Eql < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
780
961
|
def diffable?; end
|
|
781
962
|
def failure_message; end
|
|
782
963
|
def failure_message_when_negated; end
|
|
964
|
+
|
|
965
|
+
private
|
|
966
|
+
|
|
783
967
|
def match(expected, actual); end
|
|
784
968
|
end
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
def detailed_failure_message; end
|
|
969
|
+
|
|
970
|
+
class RSpec::Matchers::BuiltIn::Equal < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
788
971
|
def diffable?; end
|
|
789
|
-
def expected_is_a_literal_singleton?; end
|
|
790
972
|
def failure_message; end
|
|
791
973
|
def failure_message_when_negated; end
|
|
974
|
+
|
|
975
|
+
private
|
|
976
|
+
|
|
977
|
+
def actual_inspected; end
|
|
978
|
+
def detailed_failure_message; end
|
|
979
|
+
def expected_is_a_literal_singleton?; end
|
|
792
980
|
def inspect_object(o); end
|
|
793
981
|
def match(expected, actual); end
|
|
794
982
|
def simple_failure_message; end
|
|
795
983
|
end
|
|
796
|
-
|
|
984
|
+
|
|
985
|
+
RSpec::Matchers::BuiltIn::Equal::LITERAL_SINGLETONS = T.let(T.unsafe(nil), Array)
|
|
986
|
+
|
|
987
|
+
class RSpec::Matchers::BuiltIn::Exist < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
988
|
+
def initialize(*expected); end
|
|
989
|
+
|
|
797
990
|
def does_not_match?(actual); end
|
|
798
991
|
def failure_message; end
|
|
799
992
|
def failure_message_when_negated; end
|
|
800
|
-
def initialize(*expected); end
|
|
801
993
|
def matches?(actual); end
|
|
802
994
|
end
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
def actual=(_); end
|
|
806
|
-
def expected; end
|
|
807
|
-
def expected=(_); end
|
|
808
|
-
def self.[](*arg0); end
|
|
809
|
-
def self.inspect; end
|
|
810
|
-
def self.members; end
|
|
811
|
-
def self.new(*arg0); end
|
|
812
|
-
end
|
|
813
|
-
class RSpec::Matchers::BuiltIn::Exist::ExistenceTest < Anonymous_Struct_2
|
|
995
|
+
|
|
996
|
+
class RSpec::Matchers::BuiltIn::Exist::ExistenceTest < ::Struct
|
|
814
997
|
def actual_exists?; end
|
|
998
|
+
def valid_test?; end
|
|
999
|
+
def validity_message; end
|
|
1000
|
+
|
|
1001
|
+
private
|
|
1002
|
+
|
|
815
1003
|
def deprecated(predicate, actual); end
|
|
816
1004
|
def existence_values; end
|
|
817
1005
|
def predicates; end
|
|
818
1006
|
def uniq_truthy_values; end
|
|
819
|
-
def valid_test?; end
|
|
820
|
-
def validity_message; end
|
|
821
1007
|
end
|
|
822
|
-
|
|
823
|
-
|
|
1008
|
+
|
|
1009
|
+
class RSpec::Matchers::BuiltIn::Has < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1010
|
+
def initialize(method_name, *args, **_arg2, &block); end
|
|
1011
|
+
|
|
824
1012
|
def description; end
|
|
825
1013
|
def does_not_match?(actual, &block); end
|
|
826
1014
|
def failure_message; end
|
|
827
|
-
def failure_message_args_description; end
|
|
828
1015
|
def failure_message_when_negated; end
|
|
829
|
-
def initialize(method_name, *args, &block); end
|
|
830
1016
|
def matches?(actual, &block); end
|
|
1017
|
+
|
|
1018
|
+
private
|
|
1019
|
+
|
|
1020
|
+
def args_description; end
|
|
1021
|
+
def failure_message_args_description; end
|
|
831
1022
|
def method_description; end
|
|
832
1023
|
def predicate; end
|
|
833
1024
|
def predicate_accessible?; end
|
|
@@ -836,77 +1027,85 @@ class RSpec::Matchers::BuiltIn::Has < RSpec::Matchers::BuiltIn::BaseMatcher
|
|
|
836
1027
|
def private_predicate?; end
|
|
837
1028
|
def validity_message; end
|
|
838
1029
|
end
|
|
839
|
-
|
|
1030
|
+
|
|
1031
|
+
class RSpec::Matchers::BuiltIn::HaveAttributes < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1032
|
+
def initialize(expected); end
|
|
1033
|
+
|
|
840
1034
|
def actual; end
|
|
841
|
-
def actual_has_attribute?(attribute_key, attribute_value); end
|
|
842
|
-
def cache_all_values; end
|
|
843
1035
|
def description; end
|
|
844
1036
|
def diffable?; end
|
|
845
1037
|
def does_not_match?(actual); end
|
|
846
1038
|
def failure_message; end
|
|
847
1039
|
def failure_message_when_negated; end
|
|
848
|
-
def formatted_values; end
|
|
849
|
-
def initialize(expected); end
|
|
850
1040
|
def matches?(actual); end
|
|
1041
|
+
def respond_to_failed; end
|
|
1042
|
+
|
|
1043
|
+
private
|
|
1044
|
+
|
|
1045
|
+
def actual_has_attribute?(attribute_key, attribute_value); end
|
|
1046
|
+
def cache_all_values; end
|
|
1047
|
+
def formatted_values; end
|
|
851
1048
|
def perform_match(predicate); end
|
|
852
1049
|
def respond_to_attributes?; end
|
|
853
|
-
def respond_to_failed; end
|
|
854
1050
|
def respond_to_failure_message_or; end
|
|
855
1051
|
def respond_to_matcher; end
|
|
856
1052
|
end
|
|
857
|
-
|
|
1053
|
+
|
|
1054
|
+
class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1055
|
+
def initialize(*expecteds); end
|
|
1056
|
+
|
|
1057
|
+
def description; end
|
|
1058
|
+
def diffable?; end
|
|
1059
|
+
def does_not_match?(actual); end
|
|
1060
|
+
def expected; end
|
|
1061
|
+
def expecteds; end
|
|
1062
|
+
def failure_message; end
|
|
1063
|
+
def failure_message_when_negated; end
|
|
1064
|
+
def matches?(actual); end
|
|
1065
|
+
|
|
1066
|
+
private
|
|
1067
|
+
|
|
858
1068
|
def actual_collection_includes?(expected_item); end
|
|
859
1069
|
def actual_hash_has_key?(expected_key); end
|
|
860
1070
|
def actual_hash_includes?(expected_key, expected_value); end
|
|
861
1071
|
def comparing_hash_keys?(expected_item); end
|
|
862
1072
|
def comparing_hash_to_a_subset?(expected_item); end
|
|
863
1073
|
def convert_to_hash?(obj); end
|
|
864
|
-
def description; end
|
|
865
1074
|
def diff_would_wrongly_highlight_matched_item?; end
|
|
866
|
-
def diffable?; end
|
|
867
|
-
def does_not_match?(actual); end
|
|
868
1075
|
def excluded_from_actual; end
|
|
869
|
-
def expected; end
|
|
870
|
-
def expecteds; end
|
|
871
|
-
def failure_message; end
|
|
872
|
-
def failure_message_when_negated; end
|
|
873
1076
|
def format_failure_message(preposition); end
|
|
874
|
-
def initialize(*expecteds); end
|
|
875
|
-
def matches?(actual); end
|
|
876
1077
|
def perform_match(actual, &block); end
|
|
877
1078
|
def readable_list_of(items); end
|
|
878
1079
|
end
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
def
|
|
882
|
-
|
|
883
|
-
def failed_objects; end
|
|
884
|
-
def failure_message; end
|
|
885
|
-
def failure_message_for_item(index, failure_message); end
|
|
886
|
-
def indent_multiline_message(message); end
|
|
887
|
-
def index_failed_objects; end
|
|
888
|
-
def initialize(matcher); end
|
|
889
|
-
def initialize_copy(other); end
|
|
890
|
-
def iterable?; end
|
|
891
|
-
def match(_expected, _actual); end
|
|
892
|
-
def matcher; end
|
|
893
|
-
end
|
|
894
|
-
class RSpec::Matchers::BuiltIn::Match < RSpec::Matchers::BuiltIn::BaseMatcher
|
|
895
|
-
def can_safely_call_match?(expected, actual); end
|
|
1080
|
+
|
|
1081
|
+
class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1082
|
+
def initialize(expected); end
|
|
1083
|
+
|
|
896
1084
|
def description; end
|
|
897
1085
|
def diffable?; end
|
|
898
|
-
def
|
|
1086
|
+
def with_captures(*captures); end
|
|
1087
|
+
|
|
1088
|
+
private
|
|
1089
|
+
|
|
1090
|
+
def can_safely_call_match?(expected, actual); end
|
|
899
1091
|
def match(expected, actual); end
|
|
900
1092
|
def match_captures(expected, actual); end
|
|
901
|
-
def with_captures(*captures); end
|
|
902
1093
|
end
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
def
|
|
906
|
-
|
|
907
|
-
|
|
1094
|
+
|
|
1095
|
+
class RSpec::Matchers::BuiltIn::NegativeOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher
|
|
1096
|
+
def __delegate_operator(actual, operator, expected); end
|
|
1097
|
+
end
|
|
1098
|
+
|
|
1099
|
+
module RSpec::Matchers::BuiltIn::NullCapture
|
|
1100
|
+
class << self
|
|
1101
|
+
def capture(_block); end
|
|
1102
|
+
def name; end
|
|
1103
|
+
end
|
|
908
1104
|
end
|
|
1105
|
+
|
|
909
1106
|
class RSpec::Matchers::BuiltIn::OperatorMatcher
|
|
1107
|
+
def initialize(actual); end
|
|
1108
|
+
|
|
910
1109
|
def !=(_expected); end
|
|
911
1110
|
def !~(_expected); end
|
|
912
1111
|
def <(expected); end
|
|
@@ -917,95 +1116,98 @@ class RSpec::Matchers::BuiltIn::OperatorMatcher
|
|
|
917
1116
|
def >(expected); end
|
|
918
1117
|
def >=(expected); end
|
|
919
1118
|
def description; end
|
|
920
|
-
def eval_match(actual, operator, expected); end
|
|
921
1119
|
def fail_with_message(message); end
|
|
1120
|
+
|
|
1121
|
+
private
|
|
1122
|
+
|
|
1123
|
+
def eval_match(actual, operator, expected); end
|
|
922
1124
|
def has_non_generic_implementation_of?(op); end
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
end
|
|
930
|
-
|
|
931
|
-
def __delegate_operator(actual, operator, expected); end
|
|
932
|
-
end
|
|
933
|
-
class RSpec::Matchers::BuiltIn::NegativeOperatorMatcher < RSpec::Matchers::BuiltIn::OperatorMatcher
|
|
934
|
-
def __delegate_operator(actual, operator, expected); end
|
|
1125
|
+
|
|
1126
|
+
class << self
|
|
1127
|
+
def get(klass, operator); end
|
|
1128
|
+
def register(klass, operator, matcher); end
|
|
1129
|
+
def registry; end
|
|
1130
|
+
def unregister(klass, operator); end
|
|
1131
|
+
def use_custom_matcher_or_delegate(operator); end
|
|
1132
|
+
end
|
|
935
1133
|
end
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
def
|
|
1134
|
+
|
|
1135
|
+
class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1136
|
+
def initialize(expected); end
|
|
1137
|
+
|
|
939
1138
|
def description; end
|
|
940
1139
|
def diffable?; end
|
|
941
1140
|
def does_not_match?(block); end
|
|
942
1141
|
def failure_message; end
|
|
943
1142
|
def failure_message_when_negated; end
|
|
944
|
-
def initialize(expected); end
|
|
945
1143
|
def matches?(block); end
|
|
946
|
-
def negative_failure_reason; end
|
|
947
|
-
def positive_failure_reason; end
|
|
948
1144
|
def supports_block_expectations?; end
|
|
949
1145
|
def to_stderr; end
|
|
950
1146
|
def to_stderr_from_any_process; end
|
|
951
1147
|
def to_stdout; end
|
|
952
1148
|
def to_stdout_from_any_process; end
|
|
1149
|
+
|
|
1150
|
+
private
|
|
1151
|
+
|
|
1152
|
+
def actual_output_description; end
|
|
1153
|
+
def captured?; end
|
|
1154
|
+
def negative_failure_reason; end
|
|
1155
|
+
def positive_failure_reason; end
|
|
953
1156
|
end
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
def
|
|
957
|
-
end
|
|
958
|
-
module RSpec::Matchers::BuiltIn::CaptureStdout
|
|
959
|
-
def self.capture(block); end
|
|
960
|
-
def self.name; end
|
|
961
|
-
end
|
|
962
|
-
module RSpec::Matchers::BuiltIn::CaptureStderr
|
|
963
|
-
def self.capture(block); end
|
|
964
|
-
def self.name; end
|
|
965
|
-
end
|
|
966
|
-
class Anonymous_Struct_3 < Struct
|
|
967
|
-
def name; end
|
|
968
|
-
def name=(_); end
|
|
969
|
-
def self.[](*arg0); end
|
|
970
|
-
def self.inspect; end
|
|
971
|
-
def self.members; end
|
|
972
|
-
def self.new(*arg0); end
|
|
973
|
-
def stream; end
|
|
974
|
-
def stream=(_); end
|
|
975
|
-
end
|
|
976
|
-
class RSpec::Matchers::BuiltIn::CaptureStreamToTempfile < Anonymous_Struct_3
|
|
977
|
-
def capture(block); end
|
|
1157
|
+
|
|
1158
|
+
class RSpec::Matchers::BuiltIn::PositiveOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher
|
|
1159
|
+
def __delegate_operator(actual, operator, expected); end
|
|
978
1160
|
end
|
|
1161
|
+
|
|
979
1162
|
class RSpec::Matchers::BuiltIn::RaiseError
|
|
980
|
-
|
|
1163
|
+
include ::RSpec::Matchers::Composable
|
|
1164
|
+
|
|
1165
|
+
def initialize(expected_error_or_message = T.unsafe(nil), expected_message = T.unsafe(nil), &block); end
|
|
1166
|
+
|
|
981
1167
|
def description; end
|
|
982
1168
|
def does_not_match?(given_proc); end
|
|
1169
|
+
def expects_call_stack_jump?; end
|
|
1170
|
+
def failure_message; end
|
|
1171
|
+
def failure_message_when_negated; end
|
|
1172
|
+
def matches?(given_proc, negative_expectation = T.unsafe(nil), &block); end
|
|
1173
|
+
def supports_block_expectations?; end
|
|
1174
|
+
def with_message(expected_message); end
|
|
1175
|
+
|
|
1176
|
+
private
|
|
1177
|
+
|
|
1178
|
+
def block_matches?; end
|
|
983
1179
|
def error_and_message_match?; end
|
|
984
1180
|
def eval_block; end
|
|
985
1181
|
def expectation_matched?; end
|
|
986
1182
|
def expected_error; end
|
|
987
1183
|
def expecting_specific_exception?; end
|
|
988
|
-
def expects_call_stack_jump?; end
|
|
989
|
-
def failure_message; end
|
|
990
|
-
def failure_message_when_negated; end
|
|
991
1184
|
def format_backtrace(backtrace); end
|
|
992
1185
|
def given_error; end
|
|
993
1186
|
def handle_warning(message); end
|
|
994
|
-
def initialize(expected_error_or_message = nil, expected_message = nil, &block); end
|
|
995
|
-
def matches?(given_proc, negative_expectation = nil, &block); end
|
|
996
1187
|
def raise_message_already_set; end
|
|
997
1188
|
def ready_to_eval_block?; end
|
|
998
|
-
def supports_block_expectations?; end
|
|
999
1189
|
def verify_message; end
|
|
1000
1190
|
def warn_about_bare_error; end
|
|
1001
1191
|
def warn_about_negative_false_positive(expression); end
|
|
1002
1192
|
def warn_for_false_positives; end
|
|
1003
1193
|
def warning; end
|
|
1004
1194
|
def warning_about_bare_error; end
|
|
1005
|
-
def with_message(expected_message); end
|
|
1006
|
-
include RSpec::Matchers::Composable
|
|
1007
1195
|
end
|
|
1008
|
-
|
|
1196
|
+
|
|
1197
|
+
class RSpec::Matchers::BuiltIn::ReliableMatchData
|
|
1198
|
+
def initialize(match_data); end
|
|
1199
|
+
|
|
1200
|
+
def captures; end
|
|
1201
|
+
def names; end
|
|
1202
|
+
|
|
1203
|
+
protected
|
|
1204
|
+
|
|
1205
|
+
def match_data; end
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1209
|
+
def initialize(*names); end
|
|
1210
|
+
|
|
1009
1211
|
def and_any_keywords; end
|
|
1010
1212
|
def and_keywords(*keywords); end
|
|
1011
1213
|
def and_unlimited_arguments; end
|
|
@@ -1015,113 +1217,353 @@ class RSpec::Matchers::BuiltIn::RespondTo < RSpec::Matchers::BuiltIn::BaseMatche
|
|
|
1015
1217
|
def does_not_match?(actual); end
|
|
1016
1218
|
def failure_message; end
|
|
1017
1219
|
def failure_message_when_negated; end
|
|
1018
|
-
def find_failing_method_names(actual, filter_method); end
|
|
1019
1220
|
def ignoring_method_signature_failure!; end
|
|
1020
|
-
def initialize(*names); end
|
|
1021
1221
|
def matches?(actual); end
|
|
1222
|
+
def with(n); end
|
|
1223
|
+
def with_any_keywords; end
|
|
1224
|
+
def with_keywords(*keywords); end
|
|
1225
|
+
def with_unlimited_arguments; end
|
|
1226
|
+
|
|
1227
|
+
private
|
|
1228
|
+
|
|
1229
|
+
def find_failing_method_names(actual, filter_method); end
|
|
1022
1230
|
def matches_arity?(actual, name); end
|
|
1023
1231
|
def method_signature_for(actual, name); end
|
|
1024
1232
|
def pp_names; end
|
|
1025
1233
|
def setup_method_signature_expectation; end
|
|
1026
|
-
def with(n); end
|
|
1027
|
-
def with_any_keywords; end
|
|
1028
1234
|
def with_arity; end
|
|
1029
1235
|
def with_arity_string; end
|
|
1030
|
-
def with_keywords(*keywords); end
|
|
1031
1236
|
def with_keywords_string; end
|
|
1032
|
-
def with_unlimited_arguments; end
|
|
1033
1237
|
end
|
|
1034
|
-
|
|
1035
|
-
|
|
1238
|
+
|
|
1239
|
+
class RSpec::Matchers::BuiltIn::Satisfy < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1240
|
+
def initialize(description = T.unsafe(nil), &block); end
|
|
1241
|
+
|
|
1036
1242
|
def description; end
|
|
1037
|
-
def extract_block_snippet; end
|
|
1038
1243
|
def failure_message; end
|
|
1039
1244
|
def failure_message_when_negated; end
|
|
1040
|
-
def initialize(description = nil, &block); end
|
|
1041
1245
|
def matches?(actual, &block); end
|
|
1246
|
+
|
|
1247
|
+
private
|
|
1248
|
+
|
|
1249
|
+
def block_representation; end
|
|
1250
|
+
def extract_block_snippet; end
|
|
1251
|
+
end
|
|
1252
|
+
|
|
1253
|
+
class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1254
|
+
def initialize(change_details, from, to); end
|
|
1255
|
+
|
|
1256
|
+
def description; end
|
|
1257
|
+
def failure_message; end
|
|
1258
|
+
def matches?(event_proc); end
|
|
1259
|
+
def supports_block_expectations?; end
|
|
1260
|
+
|
|
1261
|
+
private
|
|
1262
|
+
|
|
1263
|
+
def after_value_failure; end
|
|
1264
|
+
def before_value_failure; end
|
|
1265
|
+
def did_change_failure; end
|
|
1266
|
+
def did_not_change_failure; end
|
|
1267
|
+
def matches_after?; end
|
|
1268
|
+
def not_given_a_block_failure; end
|
|
1269
|
+
def perform_change(event_proc); end
|
|
1270
|
+
end
|
|
1271
|
+
|
|
1272
|
+
RSpec::Matchers::BuiltIn::SpecificValuesChange::MATCH_ANYTHING = BasicObject
|
|
1273
|
+
RSpec::Matchers::BuiltIn::StartAndEndWith = RSpec::Matchers::BuiltIn::StartOrEndWith
|
|
1274
|
+
|
|
1275
|
+
class RSpec::Matchers::BuiltIn::StartOrEndWith < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1276
|
+
def initialize(*expected); end
|
|
1277
|
+
|
|
1278
|
+
def description; end
|
|
1279
|
+
def failure_message; end
|
|
1280
|
+
|
|
1281
|
+
private
|
|
1282
|
+
|
|
1283
|
+
def match(_expected, actual); end
|
|
1284
|
+
def subsets_comparable?; end
|
|
1285
|
+
end
|
|
1286
|
+
|
|
1287
|
+
class RSpec::Matchers::BuiltIn::StartWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith
|
|
1288
|
+
private
|
|
1289
|
+
|
|
1290
|
+
def element_matches?; end
|
|
1291
|
+
def subset_matches?; end
|
|
1042
1292
|
end
|
|
1293
|
+
|
|
1043
1294
|
class RSpec::Matchers::BuiltIn::ThrowSymbol
|
|
1044
|
-
|
|
1045
|
-
|
|
1295
|
+
include ::RSpec::Matchers::Composable
|
|
1296
|
+
|
|
1297
|
+
def initialize(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end
|
|
1298
|
+
|
|
1046
1299
|
def description; end
|
|
1047
1300
|
def does_not_match?(given_proc); end
|
|
1048
|
-
def expected(symbol_desc = nil); end
|
|
1049
1301
|
def expects_call_stack_jump?; end
|
|
1050
1302
|
def failure_message; end
|
|
1051
1303
|
def failure_message_when_negated; end
|
|
1052
|
-
def initialize(expected_symbol = nil, expected_arg = nil); end
|
|
1053
1304
|
def matches?(given_proc); end
|
|
1054
1305
|
def supports_block_expectations?; end
|
|
1306
|
+
|
|
1307
|
+
private
|
|
1308
|
+
|
|
1309
|
+
def actual_result; end
|
|
1310
|
+
def caught; end
|
|
1311
|
+
def expected(symbol_desc = T.unsafe(nil)); end
|
|
1055
1312
|
def throw_description(symbol, arg); end
|
|
1056
|
-
include RSpec::Matchers::Composable
|
|
1057
|
-
end
|
|
1058
|
-
class RSpec::Matchers::BuiltIn::YieldProbe
|
|
1059
|
-
def assert_used!; end
|
|
1060
|
-
def assert_valid_expect_block!; end
|
|
1061
|
-
def has_block?; end
|
|
1062
|
-
def initialize(block, &callback); end
|
|
1063
|
-
def num_yields; end
|
|
1064
|
-
def num_yields=(arg0); end
|
|
1065
|
-
def probe; end
|
|
1066
|
-
def self.probe(block, &callback); end
|
|
1067
|
-
def single_yield_args; end
|
|
1068
|
-
def to_proc; end
|
|
1069
|
-
def yielded_args; end
|
|
1070
|
-
def yielded_args=(arg0); end
|
|
1071
|
-
def yielded_once?(matcher_name); end
|
|
1072
1313
|
end
|
|
1073
|
-
|
|
1314
|
+
|
|
1315
|
+
class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1316
|
+
def initialize; end
|
|
1317
|
+
|
|
1074
1318
|
def at_least(number); end
|
|
1075
1319
|
def at_most(number); end
|
|
1076
|
-
def count_constraint_to_number(n); end
|
|
1077
1320
|
def does_not_match?(block); end
|
|
1078
1321
|
def exactly(number); end
|
|
1079
1322
|
def failure_message; end
|
|
1080
1323
|
def failure_message_when_negated; end
|
|
1081
|
-
def failure_reason; end
|
|
1082
|
-
def human_readable_count(count); end
|
|
1083
|
-
def human_readable_expectation_type; end
|
|
1084
|
-
def initialize; end
|
|
1085
1324
|
def matches?(block); end
|
|
1086
1325
|
def once; end
|
|
1087
|
-
def set_expected_yields_count(relativity, n); end
|
|
1088
1326
|
def supports_block_expectations?; end
|
|
1089
1327
|
def thrice; end
|
|
1090
1328
|
def times; end
|
|
1091
1329
|
def twice; end
|
|
1330
|
+
|
|
1331
|
+
private
|
|
1332
|
+
|
|
1333
|
+
def count_constraint_to_number(n); end
|
|
1334
|
+
def failure_reason; end
|
|
1335
|
+
def human_readable_count(count); end
|
|
1336
|
+
def human_readable_expectation_type; end
|
|
1337
|
+
def set_expected_yields_count(relativity, n); end
|
|
1338
|
+
end
|
|
1339
|
+
|
|
1340
|
+
class RSpec::Matchers::BuiltIn::YieldProbe
|
|
1341
|
+
def initialize(block, &callback); end
|
|
1342
|
+
|
|
1343
|
+
def assert_used!; end
|
|
1344
|
+
def assert_valid_expect_block!; end
|
|
1345
|
+
def has_block?; end
|
|
1346
|
+
def num_yields; end
|
|
1347
|
+
def num_yields=(_arg0); end
|
|
1348
|
+
def probe; end
|
|
1349
|
+
def single_yield_args; end
|
|
1350
|
+
def to_proc; end
|
|
1351
|
+
def yielded_args; end
|
|
1352
|
+
def yielded_args=(_arg0); end
|
|
1353
|
+
def yielded_once?(matcher_name); end
|
|
1354
|
+
|
|
1355
|
+
class << self
|
|
1356
|
+
def probe(block, &callback); end
|
|
1357
|
+
end
|
|
1092
1358
|
end
|
|
1093
|
-
|
|
1359
|
+
|
|
1360
|
+
class RSpec::Matchers::BuiltIn::YieldSuccessiveArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1361
|
+
def initialize(*args); end
|
|
1362
|
+
|
|
1363
|
+
def description; end
|
|
1094
1364
|
def does_not_match?(block); end
|
|
1095
1365
|
def failure_message; end
|
|
1096
1366
|
def failure_message_when_negated; end
|
|
1097
1367
|
def matches?(block); end
|
|
1368
|
+
def supports_block_expectations?; end
|
|
1369
|
+
|
|
1370
|
+
private
|
|
1371
|
+
|
|
1372
|
+
def expected_arg_description; end
|
|
1098
1373
|
def negative_failure_reason; end
|
|
1099
1374
|
def positive_failure_reason; end
|
|
1100
|
-
def supports_block_expectations?; end
|
|
1101
1375
|
end
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
def
|
|
1376
|
+
|
|
1377
|
+
class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1378
|
+
def initialize(*args); end
|
|
1379
|
+
|
|
1105
1380
|
def description; end
|
|
1106
1381
|
def does_not_match?(block); end
|
|
1107
|
-
def expected_arg_description; end
|
|
1108
1382
|
def failure_message; end
|
|
1109
1383
|
def failure_message_when_negated; end
|
|
1110
|
-
def initialize(*args); end
|
|
1111
1384
|
def matches?(block); end
|
|
1385
|
+
def supports_block_expectations?; end
|
|
1386
|
+
|
|
1387
|
+
private
|
|
1388
|
+
|
|
1389
|
+
def all_args_match?; end
|
|
1390
|
+
def args_currently_match?; end
|
|
1391
|
+
def expected_arg_description; end
|
|
1112
1392
|
def negative_failure_reason; end
|
|
1113
1393
|
def positive_failure_reason; end
|
|
1114
|
-
def supports_block_expectations?; end
|
|
1115
1394
|
end
|
|
1116
|
-
|
|
1117
|
-
|
|
1395
|
+
|
|
1396
|
+
class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
|
1118
1397
|
def does_not_match?(block); end
|
|
1119
|
-
def expected_arg_description; end
|
|
1120
1398
|
def failure_message; end
|
|
1121
1399
|
def failure_message_when_negated; end
|
|
1122
|
-
def initialize(*args); end
|
|
1123
1400
|
def matches?(block); end
|
|
1401
|
+
def supports_block_expectations?; end
|
|
1402
|
+
|
|
1403
|
+
private
|
|
1404
|
+
|
|
1124
1405
|
def negative_failure_reason; end
|
|
1125
1406
|
def positive_failure_reason; end
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
module RSpec::Matchers::Composable
|
|
1410
|
+
def &(matcher); end
|
|
1411
|
+
def ===(value); end
|
|
1412
|
+
def and(matcher); end
|
|
1413
|
+
def or(matcher); end
|
|
1414
|
+
def |(matcher); end
|
|
1415
|
+
|
|
1416
|
+
private
|
|
1417
|
+
|
|
1418
|
+
def description_of(object); end
|
|
1419
|
+
def should_enumerate?(item); end
|
|
1420
|
+
def surface_descriptions_in(item); end
|
|
1421
|
+
def unreadable_io?(object); end
|
|
1422
|
+
def values_match?(expected, actual); end
|
|
1423
|
+
def with_matchers_cloned(object); end
|
|
1424
|
+
|
|
1425
|
+
class << self
|
|
1426
|
+
def should_enumerate?(item); end
|
|
1427
|
+
def surface_descriptions_in(item); end
|
|
1428
|
+
def unreadable_io?(object); end
|
|
1429
|
+
end
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1432
|
+
class RSpec::Matchers::Composable::DescribableItem < ::Struct
|
|
1433
|
+
def inspect; end
|
|
1434
|
+
def item; end
|
|
1435
|
+
def item=(_); end
|
|
1436
|
+
def pretty_print(pp); end
|
|
1437
|
+
|
|
1438
|
+
class << self
|
|
1439
|
+
def [](*_arg0); end
|
|
1440
|
+
def inspect; end
|
|
1441
|
+
def keyword_init?; end
|
|
1442
|
+
def members; end
|
|
1443
|
+
def new(*_arg0); end
|
|
1444
|
+
end
|
|
1445
|
+
end
|
|
1446
|
+
|
|
1447
|
+
module RSpec::Matchers::DSL
|
|
1448
|
+
def alias_matcher(new_name, old_name, options = T.unsafe(nil), &description_override); end
|
|
1449
|
+
def define(name, &declarations); end
|
|
1450
|
+
def define_negated_matcher(negated_name, base_name, &description_override); end
|
|
1451
|
+
def matcher(name, &declarations); end
|
|
1452
|
+
|
|
1453
|
+
private
|
|
1454
|
+
|
|
1455
|
+
def warn_about_block_args(name, declarations); end
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1458
|
+
module RSpec::Matchers::DSL::DefaultImplementations
|
|
1459
|
+
include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
1460
|
+
|
|
1461
|
+
def description; end
|
|
1462
|
+
def diffable?; end
|
|
1463
|
+
def expects_call_stack_jump?; end
|
|
1126
1464
|
def supports_block_expectations?; end
|
|
1465
|
+
|
|
1466
|
+
private
|
|
1467
|
+
|
|
1468
|
+
def chained_method_clause_sentences; end
|
|
1469
|
+
end
|
|
1470
|
+
|
|
1471
|
+
module RSpec::Matchers::DSL::Macros
|
|
1472
|
+
def chain(method_name, *attr_names, &definition); end
|
|
1473
|
+
def description(&definition); end
|
|
1474
|
+
def diffable; end
|
|
1475
|
+
def failure_message(&definition); end
|
|
1476
|
+
def failure_message_when_negated(&definition); end
|
|
1477
|
+
def match(options = T.unsafe(nil), &match_block); end
|
|
1478
|
+
def match_unless_raises(expected_exception = T.unsafe(nil), &match_block); end
|
|
1479
|
+
def match_when_negated(options = T.unsafe(nil), &match_block); end
|
|
1480
|
+
def supports_block_expectations; end
|
|
1481
|
+
|
|
1482
|
+
private
|
|
1483
|
+
|
|
1484
|
+
def assign_attributes(attr_names); end
|
|
1485
|
+
def define_user_override(method_name, user_def, &our_def); end
|
|
1486
|
+
end
|
|
1487
|
+
|
|
1488
|
+
module RSpec::Matchers::DSL::Macros::Deprecated
|
|
1489
|
+
def failure_message_for_should(&definition); end
|
|
1490
|
+
def failure_message_for_should_not(&definition); end
|
|
1491
|
+
def match_for_should(&definition); end
|
|
1492
|
+
def match_for_should_not(&definition); end
|
|
1493
|
+
end
|
|
1494
|
+
|
|
1495
|
+
RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
|
1496
|
+
|
|
1497
|
+
class RSpec::Matchers::DSL::Matcher
|
|
1498
|
+
include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
|
1499
|
+
include ::RSpec::Matchers::DSL::DefaultImplementations
|
|
1500
|
+
include ::RSpec::Matchers
|
|
1501
|
+
include ::RSpec::Matchers::Composable
|
|
1502
|
+
extend ::RSpec::Matchers::DSL::Macros
|
|
1503
|
+
extend ::RSpec::Matchers::DSL::Macros::Deprecated
|
|
1504
|
+
|
|
1505
|
+
def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end
|
|
1506
|
+
|
|
1507
|
+
def actual; end
|
|
1508
|
+
def block_arg; end
|
|
1509
|
+
def expected; end
|
|
1510
|
+
def expected_as_array; end
|
|
1511
|
+
def inspect; end
|
|
1512
|
+
def name; end
|
|
1513
|
+
def rescued_exception; end
|
|
1514
|
+
|
|
1515
|
+
private
|
|
1516
|
+
|
|
1517
|
+
def actual_arg_for(block); end
|
|
1518
|
+
def method_missing(method, *args, **_arg2, &block); end
|
|
1519
|
+
def respond_to_missing?(method, include_private = T.unsafe(nil)); end
|
|
1520
|
+
end
|
|
1521
|
+
|
|
1522
|
+
RSpec::Matchers::DYNAMIC_MATCHER_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
1523
|
+
|
|
1524
|
+
module RSpec::Matchers::EnglishPhrasing
|
|
1525
|
+
class << self
|
|
1526
|
+
def list(obj); end
|
|
1527
|
+
def split_words(sym); end
|
|
1528
|
+
end
|
|
1529
|
+
end
|
|
1530
|
+
|
|
1531
|
+
class RSpec::Matchers::ExpectedsForMultipleDiffs
|
|
1532
|
+
def initialize(expected_list); end
|
|
1533
|
+
|
|
1534
|
+
def message_with_diff(message, differ, actual); end
|
|
1535
|
+
|
|
1536
|
+
private
|
|
1537
|
+
|
|
1538
|
+
def diffs(differ, actual); end
|
|
1539
|
+
|
|
1540
|
+
class << self
|
|
1541
|
+
def for_many_matchers(matchers); end
|
|
1542
|
+
def from(expected); end
|
|
1543
|
+
|
|
1544
|
+
private
|
|
1545
|
+
|
|
1546
|
+
def diff_label_for(matcher); end
|
|
1547
|
+
def truncated(description); end
|
|
1548
|
+
end
|
|
1549
|
+
end
|
|
1550
|
+
|
|
1551
|
+
RSpec::Matchers::ExpectedsForMultipleDiffs::DEFAULT_DIFF_LABEL = T.let(T.unsafe(nil), String)
|
|
1552
|
+
RSpec::Matchers::ExpectedsForMultipleDiffs::DESCRIPTION_MAX_LENGTH = T.let(T.unsafe(nil), Integer)
|
|
1553
|
+
RSpec::Matchers::HAS_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
1554
|
+
|
|
1555
|
+
class RSpec::Matchers::MatcherDelegator
|
|
1556
|
+
include ::RSpec::Matchers::Composable
|
|
1557
|
+
|
|
1558
|
+
def initialize(base_matcher); end
|
|
1559
|
+
|
|
1560
|
+
def base_matcher; end
|
|
1561
|
+
def method_missing(*args, &block); end
|
|
1562
|
+
|
|
1563
|
+
private
|
|
1564
|
+
|
|
1565
|
+
def initialize_copy(other); end
|
|
1566
|
+
def respond_to_missing?(name, include_all = T.unsafe(nil)); end
|
|
1127
1567
|
end
|
|
1568
|
+
|
|
1569
|
+
RSpec::SharedContext = RSpec::Core::SharedContext
|