toy_adt 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +75 -0
- data/Guardfile +14 -0
- data/LICENSE.txt +21 -0
- data/README.md +106 -0
- data/Rakefile +8 -0
- data/lib/toy_adt/deconstructable_sorbet_struct.rb +29 -0
- data/lib/toy_adt/public_api.rb +56 -0
- data/lib/toy_adt/version.rb +6 -0
- data/lib/toy_adt.rb +10 -0
- data/sorbet/config +3 -0
- data/sorbet/rbi/gems/guard.rbi +397 -0
- data/sorbet/rbi/gems/listen.rbi +304 -0
- data/sorbet/rbi/gems/lumberjack.rbi +299 -0
- data/sorbet/rbi/gems/nenv.rbi +60 -0
- data/sorbet/rbi/gems/notiffany.rbi +215 -0
- data/sorbet/rbi/gems/rake.rbi +645 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1909 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1177 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1095 -0
- data/sorbet/rbi/gems/rspec-support.rbi +282 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/shellany.rbi +29 -0
- data/sorbet/rbi/gems/thor.rbi +33 -0
- data/sorbet/rbi/gems/toy_adt.rbi +14 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +10499 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +5951 -0
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
- data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
- data/sorbet/rbi/todo.rbi +8 -0
- metadata +136 -0
@@ -0,0 +1,1095 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-mocks/all/rspec-mocks.rbi
|
9
|
+
#
|
10
|
+
# rspec-mocks-3.11.1
|
11
|
+
|
12
|
+
module RSpec
|
13
|
+
end
|
14
|
+
module RSpec::Mocks
|
15
|
+
def self.allow_message(subject, message, opts = nil, &block); end
|
16
|
+
def self.configuration; end
|
17
|
+
def self.error_generator; end
|
18
|
+
def self.expect_message(subject, message, opts = nil, &block); end
|
19
|
+
def self.setup; end
|
20
|
+
def self.space; end
|
21
|
+
def self.teardown; end
|
22
|
+
def self.verify; end
|
23
|
+
def self.with_temporary_scope; end
|
24
|
+
end
|
25
|
+
class RSpec::Mocks::InstanceMethodStasher
|
26
|
+
def handle_restoration_failures; end
|
27
|
+
def initialize(object, method); end
|
28
|
+
def method_defined_directly_on_klass?; end
|
29
|
+
def method_defined_on_klass?(klass = nil); end
|
30
|
+
def method_is_stashed?; end
|
31
|
+
def method_owned_by_klass?; end
|
32
|
+
def original_method; end
|
33
|
+
def restore; end
|
34
|
+
def stash; end
|
35
|
+
end
|
36
|
+
class RSpec::Mocks::MethodDouble
|
37
|
+
def add_default_stub(*args, &implementation); end
|
38
|
+
def add_expectation(error_generator, expectation_ordering, expected_from, opts, &implementation); end
|
39
|
+
def add_simple_expectation(method_name, response, error_generator, backtrace_line); end
|
40
|
+
def add_simple_stub(method_name, response); end
|
41
|
+
def add_stub(error_generator, expectation_ordering, expected_from, opts = nil, &implementation); end
|
42
|
+
def build_expectation(error_generator, expectation_ordering); end
|
43
|
+
def clear; end
|
44
|
+
def configure_method; end
|
45
|
+
def define_proxy_method; end
|
46
|
+
def definition_target; end
|
47
|
+
def expectations; end
|
48
|
+
def initialize(object, method_name, proxy); end
|
49
|
+
def message_expectation_class; end
|
50
|
+
def method_name; end
|
51
|
+
def method_stasher; end
|
52
|
+
def new_rspec_prepended_module; end
|
53
|
+
def object; end
|
54
|
+
def object_singleton_class; end
|
55
|
+
def original_implementation_callable; end
|
56
|
+
def original_method; end
|
57
|
+
def proxy_method_invoked(_obj, *args, **, &block); end
|
58
|
+
def raise_method_not_stubbed_error; end
|
59
|
+
def remove_method_from_definition_target; end
|
60
|
+
def remove_stub; end
|
61
|
+
def remove_stub_if_present; end
|
62
|
+
def reset; end
|
63
|
+
def restore_original_method; end
|
64
|
+
def restore_original_visibility; end
|
65
|
+
def save_original_implementation_callable!; end
|
66
|
+
def setup_simple_method_double(method_name, response, collection, error_generator = nil, backtrace_line = nil); end
|
67
|
+
def show_frozen_warning; end
|
68
|
+
def stubs; end
|
69
|
+
def usable_rspec_prepended_module; end
|
70
|
+
def verify; end
|
71
|
+
def visibility; end
|
72
|
+
end
|
73
|
+
class RSpec::Mocks::MethodDouble::RSpecPrependedModule < Module
|
74
|
+
end
|
75
|
+
module RSpec::Mocks::ArgumentMatchers
|
76
|
+
def a_kind_of(klass); end
|
77
|
+
def an_instance_of(klass); end
|
78
|
+
def any_args; end
|
79
|
+
def anything; end
|
80
|
+
def array_including(*args); end
|
81
|
+
def boolean; end
|
82
|
+
def duck_type(*args); end
|
83
|
+
def hash_excluding(*args); end
|
84
|
+
def hash_including(*args); end
|
85
|
+
def hash_not_including(*args); end
|
86
|
+
def instance_of(klass); end
|
87
|
+
def kind_of(klass); end
|
88
|
+
def no_args; end
|
89
|
+
def self.anythingize_lonely_keys(*args); end
|
90
|
+
end
|
91
|
+
class RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
92
|
+
def self.inherited(subklass); end
|
93
|
+
def self.new(*arg0, **); end
|
94
|
+
end
|
95
|
+
class RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
96
|
+
def description; end
|
97
|
+
end
|
98
|
+
class RSpec::Mocks::ArgumentMatchers::AnyArgMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
99
|
+
def ===(_other); end
|
100
|
+
def description; end
|
101
|
+
end
|
102
|
+
class RSpec::Mocks::ArgumentMatchers::NoArgsMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
103
|
+
def description; end
|
104
|
+
end
|
105
|
+
class RSpec::Mocks::ArgumentMatchers::BooleanMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
106
|
+
def ===(value); end
|
107
|
+
def description; end
|
108
|
+
end
|
109
|
+
class RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
|
110
|
+
def ===(predicate, actual); end
|
111
|
+
def description(name); end
|
112
|
+
def formatted_expected_hash; end
|
113
|
+
def initialize(expected); end
|
114
|
+
end
|
115
|
+
class RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher < RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
|
116
|
+
def ===(actual); end
|
117
|
+
def description; end
|
118
|
+
end
|
119
|
+
class RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher < RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
|
120
|
+
def ===(actual); end
|
121
|
+
def description; end
|
122
|
+
end
|
123
|
+
class RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher
|
124
|
+
def ===(actual); end
|
125
|
+
def description; end
|
126
|
+
def formatted_expected_values; end
|
127
|
+
def initialize(expected); end
|
128
|
+
end
|
129
|
+
class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher
|
130
|
+
def ===(value); end
|
131
|
+
def description; end
|
132
|
+
def initialize(*methods_to_respond_to); end
|
133
|
+
end
|
134
|
+
class RSpec::Mocks::ArgumentMatchers::InstanceOf
|
135
|
+
def ===(actual); end
|
136
|
+
def description; end
|
137
|
+
def initialize(klass); end
|
138
|
+
end
|
139
|
+
class RSpec::Mocks::ArgumentMatchers::KindOf
|
140
|
+
def ===(actual); end
|
141
|
+
def description; end
|
142
|
+
def initialize(klass); end
|
143
|
+
end
|
144
|
+
class RSpec::Mocks::ObjectReference
|
145
|
+
def self.anonymous_module?(mod); end
|
146
|
+
def self.for(object_module_or_name, allow_direct_object_refs = nil); end
|
147
|
+
def self.name_of(mod); end
|
148
|
+
end
|
149
|
+
class RSpec::Mocks::DirectObjectReference
|
150
|
+
def const_to_replace; end
|
151
|
+
def defined?; end
|
152
|
+
def description; end
|
153
|
+
def initialize(object); end
|
154
|
+
def target; end
|
155
|
+
def when_loaded; end
|
156
|
+
end
|
157
|
+
class RSpec::Mocks::NamedObjectReference
|
158
|
+
def const_to_replace; end
|
159
|
+
def defined?; end
|
160
|
+
def description; end
|
161
|
+
def initialize(const_name); end
|
162
|
+
def object; end
|
163
|
+
def target; end
|
164
|
+
def when_loaded; end
|
165
|
+
end
|
166
|
+
module RSpec::Mocks::ExampleMethods
|
167
|
+
def allow(target); end
|
168
|
+
def allow_any_instance_of(klass); end
|
169
|
+
def allow_message_expectations_on_nil; end
|
170
|
+
def class_double(doubled_class, *args); end
|
171
|
+
def class_spy(*args); end
|
172
|
+
def double(*args); end
|
173
|
+
def expect_any_instance_of(klass); end
|
174
|
+
def have_received(method_name, &block); end
|
175
|
+
def hide_const(constant_name); end
|
176
|
+
def instance_double(doubled_class, *args); end
|
177
|
+
def instance_spy(*args); end
|
178
|
+
def object_double(object_or_name, *args); end
|
179
|
+
def object_spy(*args); end
|
180
|
+
def receive(method_name, &block); end
|
181
|
+
def receive_message_chain(*messages, &block); end
|
182
|
+
def receive_messages(message_return_value_hash); end
|
183
|
+
def self.declare_double(type, *args); end
|
184
|
+
def self.declare_verifying_double(type, ref, *args); end
|
185
|
+
def self.extended(object); end
|
186
|
+
def self.included(klass); end
|
187
|
+
def spy(*args); end
|
188
|
+
def stub_const(constant_name, value, options = nil); end
|
189
|
+
def without_partial_double_verification; end
|
190
|
+
include RSpec::Mocks::ArgumentMatchers
|
191
|
+
end
|
192
|
+
module RSpec::Mocks::ExampleMethods::ExpectHost
|
193
|
+
def expect(target); end
|
194
|
+
end
|
195
|
+
class RSpec::Mocks::Proxy
|
196
|
+
def add_message_expectation(method_name, opts = nil, &block); end
|
197
|
+
def add_simple_expectation(method_name, response, location); end
|
198
|
+
def add_simple_stub(method_name, response); end
|
199
|
+
def add_stub(method_name, opts = nil, &implementation); end
|
200
|
+
def as_null_object; end
|
201
|
+
def build_expectation(method_name); end
|
202
|
+
def check_for_unexpected_arguments(expectation); end
|
203
|
+
def ensure_can_be_proxied!(object); end
|
204
|
+
def ensure_implemented(*_args); end
|
205
|
+
def find_almost_matching_expectation(method_name, *args, **); end
|
206
|
+
def find_almost_matching_stub(method_name, *args, **); end
|
207
|
+
def find_best_matching_expectation_for(method_name); end
|
208
|
+
def find_matching_expectation(method_name, *args, **); end
|
209
|
+
def find_matching_method_stub(method_name, *args, **); end
|
210
|
+
def has_negative_expectation?(message); end
|
211
|
+
def initialize(object, order_group, options = nil); end
|
212
|
+
def message_received(message, *args, **, &block); end
|
213
|
+
def messages_arg_list; end
|
214
|
+
def method_double_for(message); end
|
215
|
+
def method_double_if_exists_for_message(message); end
|
216
|
+
def null_object?; end
|
217
|
+
def object; end
|
218
|
+
def original_method_handle_for(_message); end
|
219
|
+
def prepended_modules_of_singleton_class; end
|
220
|
+
def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
|
221
|
+
def raise_unexpected_message_error(method_name, args); end
|
222
|
+
def received_message?(method_name, *args, &block); end
|
223
|
+
def record_message_received(message, *args, &block); end
|
224
|
+
def remove_stub(method_name); end
|
225
|
+
def remove_stub_if_present(method_name); end
|
226
|
+
def replay_received_message_on(expectation, &block); end
|
227
|
+
def reset; end
|
228
|
+
def self.prepended_modules_of(klass); end
|
229
|
+
def verify; end
|
230
|
+
def visibility_for(_method_name); end
|
231
|
+
end
|
232
|
+
class RSpec::Mocks::Proxy::SpecificMessage < Struct
|
233
|
+
def ==(expectation); end
|
234
|
+
def args; end
|
235
|
+
def args=(_); end
|
236
|
+
def message; end
|
237
|
+
def message=(_); end
|
238
|
+
def object; end
|
239
|
+
def object=(_); end
|
240
|
+
def self.[](*arg0); end
|
241
|
+
def self.inspect; end
|
242
|
+
def self.keyword_init?; end
|
243
|
+
def self.members; end
|
244
|
+
def self.new(*arg0); end
|
245
|
+
end
|
246
|
+
class RSpec::Mocks::TestDoubleProxy < RSpec::Mocks::Proxy
|
247
|
+
def reset; end
|
248
|
+
end
|
249
|
+
class RSpec::Mocks::PartialDoubleProxy < RSpec::Mocks::Proxy
|
250
|
+
def add_simple_expectation(method_name, response, location); end
|
251
|
+
def add_simple_stub(method_name, response); end
|
252
|
+
def any_instance_class_recorder_observing_method?(klass, method_name); end
|
253
|
+
def message_received(message, *args, **, &block); end
|
254
|
+
def original_method_handle_for(message); end
|
255
|
+
def reset; end
|
256
|
+
def visibility_for(method_name); end
|
257
|
+
end
|
258
|
+
module RSpec::Mocks::PartialClassDoubleProxyMethods
|
259
|
+
def initialize(source_space, *args); end
|
260
|
+
def method_double_from_ancestor_for(message); end
|
261
|
+
def original_method_handle_for(message); end
|
262
|
+
def original_unbound_method_handle_from_ancestor_for(message); end
|
263
|
+
def superclass_proxy; end
|
264
|
+
end
|
265
|
+
class RSpec::Mocks::PartialClassDoubleProxy < RSpec::Mocks::PartialDoubleProxy
|
266
|
+
include RSpec::Mocks::PartialClassDoubleProxyMethods
|
267
|
+
end
|
268
|
+
class RSpec::Mocks::ProxyForNil < RSpec::Mocks::PartialDoubleProxy
|
269
|
+
def add_message_expectation(method_name, opts = nil, &block); end
|
270
|
+
def add_stub(method_name, opts = nil, &implementation); end
|
271
|
+
def disallow_expectations; end
|
272
|
+
def disallow_expectations=(arg0); end
|
273
|
+
def initialize(order_group); end
|
274
|
+
def raise_error(method_name); end
|
275
|
+
def set_expectation_behavior; end
|
276
|
+
def warn(method_name); end
|
277
|
+
def warn_about_expectations; end
|
278
|
+
def warn_about_expectations=(arg0); end
|
279
|
+
def warn_or_raise!(method_name); end
|
280
|
+
end
|
281
|
+
module RSpec::Mocks::TestDouble
|
282
|
+
def ==(other); end
|
283
|
+
def __build_mock_proxy(order_group); end
|
284
|
+
def __build_mock_proxy_unless_expired(order_group); end
|
285
|
+
def __disallow_further_usage!; end
|
286
|
+
def __mock_proxy; end
|
287
|
+
def __raise_expired_error; end
|
288
|
+
def as_null_object; end
|
289
|
+
def assign_stubs(stubs); end
|
290
|
+
def freeze; end
|
291
|
+
def initialize(name = nil, stubs = nil); end
|
292
|
+
def initialize_copy(other); end
|
293
|
+
def inspect; end
|
294
|
+
def method_missing(message, *args, &block); end
|
295
|
+
def null_object?; end
|
296
|
+
def respond_to?(message, incl_private = nil); end
|
297
|
+
def to_s; end
|
298
|
+
end
|
299
|
+
class RSpec::Mocks::Double
|
300
|
+
include RSpec::Mocks::TestDouble
|
301
|
+
end
|
302
|
+
module RSpec::Mocks::TestDoubleFormatter
|
303
|
+
def self.format(dbl, unwrap = nil); end
|
304
|
+
def self.name_desc(dbl); end
|
305
|
+
def self.type_desc(dbl); end
|
306
|
+
def self.verified_module_desc(dbl); end
|
307
|
+
end
|
308
|
+
class RSpec::Mocks::ArgumentListMatcher
|
309
|
+
def args_match?(*actual_args, **); end
|
310
|
+
def ensure_expected_args_valid!; end
|
311
|
+
def expected_args; end
|
312
|
+
def initialize(*expected_args, **); end
|
313
|
+
def replace_any_args_with_splat_of_anything(before_count, actual_args_count); end
|
314
|
+
def resolve_expected_args_based_on(actual_args); end
|
315
|
+
end
|
316
|
+
class RSpec::Mocks::SimpleMessageExpectation
|
317
|
+
def called_max_times?; end
|
318
|
+
def initialize(message, response, error_generator, backtrace_line = nil); end
|
319
|
+
def invoke(*_); end
|
320
|
+
def matches?(message, *_); end
|
321
|
+
def unadvise(_); end
|
322
|
+
def verify_messages_received; end
|
323
|
+
end
|
324
|
+
class RSpec::Mocks::MessageExpectation
|
325
|
+
def and_call_original; end
|
326
|
+
def and_invoke(first_proc, *procs); end
|
327
|
+
def and_raise(*args); end
|
328
|
+
def and_return(first_value, *values); end
|
329
|
+
def and_throw(*args); end
|
330
|
+
def and_wrap_original(&block); end
|
331
|
+
def and_yield(*args, &block); end
|
332
|
+
def at_least(n, &block); end
|
333
|
+
def at_most(n, &block); end
|
334
|
+
def exactly(n, &block); end
|
335
|
+
def inspect; end
|
336
|
+
def never; end
|
337
|
+
def once(&block); end
|
338
|
+
def ordered(&block); end
|
339
|
+
def thrice(&block); end
|
340
|
+
def time(&block); end
|
341
|
+
def times(&block); end
|
342
|
+
def to_s; end
|
343
|
+
def twice(&block); end
|
344
|
+
def with(*args, **, &block); end
|
345
|
+
include RSpec::Mocks::MessageExpectation::ImplementationDetails
|
346
|
+
end
|
347
|
+
module RSpec::Mocks::MessageExpectation::ImplementationDetails
|
348
|
+
def actual_received_count_matters?; end
|
349
|
+
def additional_expected_calls; end
|
350
|
+
def advise(*args); end
|
351
|
+
def and_yield_receiver_to_implementation; end
|
352
|
+
def argument_list_matcher=(arg0); end
|
353
|
+
def called_max_times?; end
|
354
|
+
def description_for(verb); end
|
355
|
+
def ensure_expected_ordering_received!; end
|
356
|
+
def error_generator; end
|
357
|
+
def error_generator=(arg0); end
|
358
|
+
def exception_source_id; end
|
359
|
+
def expectation_count_type; end
|
360
|
+
def expected_args; end
|
361
|
+
def expected_from=(arg0); end
|
362
|
+
def expected_messages_received?; end
|
363
|
+
def expected_received_count=(arg0); end
|
364
|
+
def generate_error; end
|
365
|
+
def has_been_invoked?; end
|
366
|
+
def ignoring_args?; end
|
367
|
+
def implementation; end
|
368
|
+
def implementation=(arg0); end
|
369
|
+
def increase_actual_received_count!; end
|
370
|
+
def initial_implementation_action=(action); end
|
371
|
+
def initialize(error_generator, expectation_ordering, expected_from, method_double, type = nil, opts = nil, &implementation_block); end
|
372
|
+
def inner_implementation_action=(action); end
|
373
|
+
def invoke(parent_stub, *args, **, &block); end
|
374
|
+
def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, **, &block); end
|
375
|
+
def invoke_without_incrementing_received_count(parent_stub, *args, **, &block); end
|
376
|
+
def matches?(message, *args, **); end
|
377
|
+
def matches_at_least_count?; end
|
378
|
+
def matches_at_most_count?; end
|
379
|
+
def matches_exact_count?; end
|
380
|
+
def matches_name_but_not_args(message, *args); end
|
381
|
+
def message; end
|
382
|
+
def negative?; end
|
383
|
+
def negative_expectation_for?(message); end
|
384
|
+
def ordered?; end
|
385
|
+
def orig_object; end
|
386
|
+
def raise_already_invoked_error_if_necessary(calling_customization); end
|
387
|
+
def raise_out_of_order_error; end
|
388
|
+
def raise_unexpected_message_args_error(args_for_multiple_calls); end
|
389
|
+
def safe_invoke(parent_stub, *args, **, &block); end
|
390
|
+
def set_expected_received_count(relativity, n); end
|
391
|
+
def similar_messages; end
|
392
|
+
def terminal_implementation_action=(action); end
|
393
|
+
def type; end
|
394
|
+
def unadvise(args); end
|
395
|
+
def verify_messages_received; end
|
396
|
+
def warn_about_stub_override; end
|
397
|
+
def wrap_original(method_name, &block); end
|
398
|
+
def yield_receiver_to_implementation_block?; end
|
399
|
+
end
|
400
|
+
class RSpec::Mocks::AndYieldImplementation
|
401
|
+
def call(*_args_to_ignore, &block); end
|
402
|
+
def initialize(args_to_yield, eval_context, error_generator); end
|
403
|
+
end
|
404
|
+
class RSpec::Mocks::AndReturnImplementation
|
405
|
+
def call(*_args_to_ignore, &_block); end
|
406
|
+
def initialize(values_to_return); end
|
407
|
+
end
|
408
|
+
class RSpec::Mocks::AndInvokeImplementation
|
409
|
+
def call(*args, &block); end
|
410
|
+
def initialize(procs_to_invoke); end
|
411
|
+
end
|
412
|
+
class RSpec::Mocks::Implementation
|
413
|
+
def actions; end
|
414
|
+
def call(*args, **, &block); end
|
415
|
+
def initial_action; end
|
416
|
+
def initial_action=(arg0); end
|
417
|
+
def inner_action; end
|
418
|
+
def inner_action=(arg0); end
|
419
|
+
def present?; end
|
420
|
+
def terminal_action; end
|
421
|
+
def terminal_action=(arg0); end
|
422
|
+
end
|
423
|
+
class RSpec::Mocks::AndWrapOriginalImplementation
|
424
|
+
def call(*args, **, &block); end
|
425
|
+
def cannot_modify_further_error; end
|
426
|
+
def initial_action=(_value); end
|
427
|
+
def initialize(method, block); end
|
428
|
+
def inner_action; end
|
429
|
+
def inner_action=(_value); end
|
430
|
+
def present?; end
|
431
|
+
def terminal_action=(_value); end
|
432
|
+
end
|
433
|
+
class RSpec::Mocks::AndWrapOriginalImplementation::CannotModifyFurtherError < StandardError
|
434
|
+
end
|
435
|
+
class RSpec::Mocks::OrderGroup
|
436
|
+
def clear; end
|
437
|
+
def consume; end
|
438
|
+
def empty?; end
|
439
|
+
def expectation_for(message); end
|
440
|
+
def expectations_invoked_in_order?; end
|
441
|
+
def expected_invocations; end
|
442
|
+
def handle_order_constraint(expectation); end
|
443
|
+
def initialize; end
|
444
|
+
def invoked(message); end
|
445
|
+
def invoked_expectations; end
|
446
|
+
def ready_for?(expectation); end
|
447
|
+
def register(expectation); end
|
448
|
+
def remaining_expectations; end
|
449
|
+
def verify_invocation_order(expectation); end
|
450
|
+
end
|
451
|
+
class RSpec::Mocks::MockExpectationError < Exception
|
452
|
+
end
|
453
|
+
class RSpec::Mocks::ExpiredTestDoubleError < RSpec::Mocks::MockExpectationError
|
454
|
+
end
|
455
|
+
class RSpec::Mocks::OutsideOfExampleError < StandardError
|
456
|
+
end
|
457
|
+
class RSpec::Mocks::MockExpectationAlreadyInvokedError < Exception
|
458
|
+
end
|
459
|
+
class RSpec::Mocks::CannotSupportArgMutationsError < StandardError
|
460
|
+
end
|
461
|
+
class RSpec::Mocks::UnsupportedMatcherError < StandardError
|
462
|
+
end
|
463
|
+
class RSpec::Mocks::NegationUnsupportedError < StandardError
|
464
|
+
end
|
465
|
+
class RSpec::Mocks::VerifyingDoubleNotDefinedError < StandardError
|
466
|
+
end
|
467
|
+
class RSpec::Mocks::ErrorGenerator
|
468
|
+
def __raise(message, backtrace_line = nil, source_id = nil); end
|
469
|
+
def arg_list(args); end
|
470
|
+
def count_message(count, expectation_count_type = nil); end
|
471
|
+
def default_error_message(expectation, expected_args, actual_args); end
|
472
|
+
def describe_expectation(verb, message, expected_received_count, _actual_received_count, args); end
|
473
|
+
def diff_message(expected_args, actual_args); end
|
474
|
+
def differ; end
|
475
|
+
def error_message(expectation, args_for_multiple_calls); end
|
476
|
+
def expectation_on_nil_message(method_name); end
|
477
|
+
def expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher); end
|
478
|
+
def format_args(args); end
|
479
|
+
def format_received_args(args_for_multiple_calls); end
|
480
|
+
def group_count(index, args); end
|
481
|
+
def grouped_args(args); end
|
482
|
+
def initialize(target = nil); end
|
483
|
+
def intro(unwrapped = nil); end
|
484
|
+
def list_of_exactly_one_string?(args); end
|
485
|
+
def method_call_args_description(args, generic_prefix = nil, matcher_prefix = nil); end
|
486
|
+
def notify(*args); end
|
487
|
+
def opts; end
|
488
|
+
def opts=(arg0); end
|
489
|
+
def prepend_to_backtrace(exception, line); end
|
490
|
+
def raise_already_invoked_error(message, calling_customization); end
|
491
|
+
def raise_cant_constrain_count_for_negated_have_received_error(count_constraint); end
|
492
|
+
def raise_double_negation_error(wrapped_expression); end
|
493
|
+
def raise_expectation_error(message, expected_received_count, argument_list_matcher, actual_received_count, expectation_count_type, args, backtrace_line = nil, source_id = nil); end
|
494
|
+
def raise_expectation_on_mocked_method(method); end
|
495
|
+
def raise_expectation_on_nil_error(method_name); end
|
496
|
+
def raise_expectation_on_unstubbed_method(method); end
|
497
|
+
def raise_expired_test_double_error; end
|
498
|
+
def raise_have_received_disallowed(type, reason); end
|
499
|
+
def raise_invalid_arguments_error(verifier); end
|
500
|
+
def raise_method_not_stubbed_error(method_name); end
|
501
|
+
def raise_missing_block_error(args_to_yield); end
|
502
|
+
def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
|
503
|
+
def raise_non_public_error(method_name, visibility); end
|
504
|
+
def raise_only_valid_on_a_partial_double(method); end
|
505
|
+
def raise_out_of_order_error(message); end
|
506
|
+
def raise_similar_message_args_error(expectation, args_for_multiple_calls, backtrace_line = nil); end
|
507
|
+
def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id = nil); end
|
508
|
+
def raise_unexpected_message_error(message, args); end
|
509
|
+
def raise_unimplemented_error(doubled_module, method_name, object); end
|
510
|
+
def raise_verifying_double_not_defined_error(ref); end
|
511
|
+
def raise_wrong_arity_error(args_to_yield, signature); end
|
512
|
+
def received_part_of_expectation_error(actual_received_count, args); end
|
513
|
+
def times(count); end
|
514
|
+
def unexpected_arguments_message(expected_args_string, actual_args_string); end
|
515
|
+
def unpack_string_args(formatted_expected_args, actual_args); end
|
516
|
+
end
|
517
|
+
class RSpec::Mocks::RootSpace
|
518
|
+
def any_instance_proxy_for(*_args); end
|
519
|
+
def any_instance_recorder_for(*_args); end
|
520
|
+
def any_instance_recorders_from_ancestry_of(_object); end
|
521
|
+
def new_scope; end
|
522
|
+
def proxy_for(*_args); end
|
523
|
+
def raise_lifecycle_message; end
|
524
|
+
def register_constant_mutator(_mutator); end
|
525
|
+
def registered?(_object); end
|
526
|
+
def reset_all; end
|
527
|
+
def superclass_proxy_for(*_args); end
|
528
|
+
def verify_all; end
|
529
|
+
end
|
530
|
+
class RSpec::Mocks::Space
|
531
|
+
def any_instance_mutex; end
|
532
|
+
def any_instance_proxy_for(klass); end
|
533
|
+
def any_instance_recorder_for(klass, only_return_existing = nil); end
|
534
|
+
def any_instance_recorder_not_found_for(id, klass); end
|
535
|
+
def any_instance_recorders; end
|
536
|
+
def any_instance_recorders_from_ancestry_of(object); end
|
537
|
+
def class_proxy_with_callback_verification_strategy(object, strategy); end
|
538
|
+
def constant_mutator_for(name); end
|
539
|
+
def ensure_registered(object); end
|
540
|
+
def id_for(object); end
|
541
|
+
def initialize; end
|
542
|
+
def new_mutex; end
|
543
|
+
def new_scope; end
|
544
|
+
def proxies; end
|
545
|
+
def proxies_of(klass); end
|
546
|
+
def proxy_for(object); end
|
547
|
+
def proxy_mutex; end
|
548
|
+
def proxy_not_found_for(id, object); end
|
549
|
+
def register_constant_mutator(mutator); end
|
550
|
+
def registered?(object); end
|
551
|
+
def reset_all; end
|
552
|
+
def superclass_proxy_for(klass); end
|
553
|
+
def superclass_proxy_not_found_for(id, object); end
|
554
|
+
def verify_all; end
|
555
|
+
end
|
556
|
+
class RSpec::Mocks::NestedSpace < RSpec::Mocks::Space
|
557
|
+
def any_instance_recorder_not_found_for(id, klass); end
|
558
|
+
def constant_mutator_for(name); end
|
559
|
+
def initialize(parent); end
|
560
|
+
def proxies_of(klass); end
|
561
|
+
def proxy_not_found_for(id, object); end
|
562
|
+
def registered?(object); end
|
563
|
+
end
|
564
|
+
class RSpec::Mocks::Constant
|
565
|
+
def hidden=(arg0); end
|
566
|
+
def hidden?; end
|
567
|
+
def initialize(name); end
|
568
|
+
def inspect; end
|
569
|
+
def mutated?; end
|
570
|
+
def name; end
|
571
|
+
def original_value; end
|
572
|
+
def original_value=(arg0); end
|
573
|
+
def previously_defined=(arg0); end
|
574
|
+
def previously_defined?; end
|
575
|
+
def self.original(name); end
|
576
|
+
def self.unmutated(name); end
|
577
|
+
def stubbed=(arg0); end
|
578
|
+
def stubbed?; end
|
579
|
+
def to_s; end
|
580
|
+
def valid_name=(arg0); end
|
581
|
+
def valid_name?; end
|
582
|
+
extend RSpec::Support::RecursiveConstMethods
|
583
|
+
end
|
584
|
+
class RSpec::Mocks::ConstantMutator
|
585
|
+
def self.hide(constant_name); end
|
586
|
+
def self.mutate(mutator); end
|
587
|
+
def self.raise_on_invalid_const; end
|
588
|
+
def self.stub(constant_name, value, options = nil); end
|
589
|
+
extend RSpec::Support::RecursiveConstMethods
|
590
|
+
end
|
591
|
+
class RSpec::Mocks::ConstantMutator::BaseMutator
|
592
|
+
def full_constant_name; end
|
593
|
+
def idempotently_reset; end
|
594
|
+
def initialize(full_constant_name, mutated_value, transfer_nested_constants); end
|
595
|
+
def original_value; end
|
596
|
+
def to_constant; end
|
597
|
+
include RSpec::Support::RecursiveConstMethods
|
598
|
+
end
|
599
|
+
class RSpec::Mocks::ConstantMutator::ConstantHider < RSpec::Mocks::ConstantMutator::BaseMutator
|
600
|
+
def mutate; end
|
601
|
+
def reset; end
|
602
|
+
def to_constant; end
|
603
|
+
end
|
604
|
+
class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < RSpec::Mocks::ConstantMutator::BaseMutator
|
605
|
+
def initialize(*args); end
|
606
|
+
def mutate; end
|
607
|
+
def reset; end
|
608
|
+
def should_transfer_nested_constants?; end
|
609
|
+
def to_constant; end
|
610
|
+
def transfer_nested_constants; end
|
611
|
+
def verify_constants_to_transfer!; end
|
612
|
+
end
|
613
|
+
class RSpec::Mocks::ConstantMutator::UndefinedConstantSetter < RSpec::Mocks::ConstantMutator::BaseMutator
|
614
|
+
def mutate; end
|
615
|
+
def name_for(parent, name); end
|
616
|
+
def reset; end
|
617
|
+
def to_constant; end
|
618
|
+
end
|
619
|
+
module RSpec::Mocks::TargetDelegationClassMethods
|
620
|
+
def delegate_not_to(matcher_method, options = nil); end
|
621
|
+
def delegate_to(matcher_method); end
|
622
|
+
def disallow_negation(method_name); end
|
623
|
+
end
|
624
|
+
module RSpec::Mocks::TargetDelegationInstanceMethods
|
625
|
+
def define_matcher(matcher, name, &block); end
|
626
|
+
def matcher_allowed?(matcher); end
|
627
|
+
def raise_negation_unsupported(method_name, matcher); end
|
628
|
+
def raise_unsupported_matcher(method_name, matcher); end
|
629
|
+
def target; end
|
630
|
+
end
|
631
|
+
class RSpec::Mocks::TargetBase
|
632
|
+
def initialize(target); end
|
633
|
+
extend RSpec::Mocks::TargetDelegationClassMethods
|
634
|
+
include RSpec::Mocks::TargetDelegationInstanceMethods
|
635
|
+
end
|
636
|
+
module RSpec::Mocks::ExpectationTargetMethods
|
637
|
+
def expression; end
|
638
|
+
def not_to(matcher, &block); end
|
639
|
+
def to(matcher, &block); end
|
640
|
+
def to_not(matcher, &block); end
|
641
|
+
extend RSpec::Mocks::TargetDelegationClassMethods
|
642
|
+
include RSpec::Mocks::TargetDelegationInstanceMethods
|
643
|
+
end
|
644
|
+
class RSpec::Mocks::ExpectationTarget < RSpec::Mocks::TargetBase
|
645
|
+
include RSpec::Mocks::ExpectationTargetMethods
|
646
|
+
end
|
647
|
+
class RSpec::Mocks::AllowanceTarget < RSpec::Mocks::TargetBase
|
648
|
+
def expression; end
|
649
|
+
def not_to(matcher, *_args); end
|
650
|
+
def to(matcher, &block); end
|
651
|
+
def to_not(matcher, *_args); end
|
652
|
+
end
|
653
|
+
class RSpec::Mocks::AnyInstanceAllowanceTarget < RSpec::Mocks::TargetBase
|
654
|
+
def expression; end
|
655
|
+
def not_to(matcher, *_args); end
|
656
|
+
def to(matcher, &block); end
|
657
|
+
def to_not(matcher, *_args); end
|
658
|
+
end
|
659
|
+
class RSpec::Mocks::AnyInstanceExpectationTarget < RSpec::Mocks::TargetBase
|
660
|
+
def expression; end
|
661
|
+
def not_to(matcher, &block); end
|
662
|
+
def to(matcher, &block); end
|
663
|
+
def to_not(matcher, &block); end
|
664
|
+
end
|
665
|
+
module RSpec::Mocks::Syntax
|
666
|
+
def self.default_should_syntax_host; end
|
667
|
+
def self.disable_expect(syntax_host = nil); end
|
668
|
+
def self.disable_should(syntax_host = nil); end
|
669
|
+
def self.enable_expect(syntax_host = nil); end
|
670
|
+
def self.enable_should(syntax_host = nil); end
|
671
|
+
def self.expect_enabled?(syntax_host = nil); end
|
672
|
+
def self.should_enabled?(syntax_host = nil); end
|
673
|
+
def self.warn_about_should!; end
|
674
|
+
def self.warn_unless_should_configured(method_name, replacement = nil); end
|
675
|
+
end
|
676
|
+
class BasicObject
|
677
|
+
end
|
678
|
+
class Class < Module
|
679
|
+
end
|
680
|
+
class RSpec::Mocks::Configuration
|
681
|
+
def add_stub_and_should_receive_to(*modules); end
|
682
|
+
def allow_message_expectations_on_nil; end
|
683
|
+
def allow_message_expectations_on_nil=(arg0); end
|
684
|
+
def before_verifying_doubles(&block); end
|
685
|
+
def color?; end
|
686
|
+
def initialize; end
|
687
|
+
def patch_marshal_to_support_partial_doubles=(val); end
|
688
|
+
def reset_syntaxes_to_default; end
|
689
|
+
def syntax; end
|
690
|
+
def syntax=(*values); end
|
691
|
+
def temporarily_suppress_partial_double_verification; end
|
692
|
+
def temporarily_suppress_partial_double_verification=(arg0); end
|
693
|
+
def transfer_nested_constants=(arg0); end
|
694
|
+
def transfer_nested_constants?; end
|
695
|
+
def verify_doubled_constant_names=(arg0); end
|
696
|
+
def verify_doubled_constant_names?; end
|
697
|
+
def verify_partial_doubles=(val); end
|
698
|
+
def verify_partial_doubles?; end
|
699
|
+
def verifying_double_callbacks; end
|
700
|
+
def when_declaring_verifying_double(&block); end
|
701
|
+
def yield_receiver_to_any_instance_implementation_blocks=(arg0); end
|
702
|
+
def yield_receiver_to_any_instance_implementation_blocks?; end
|
703
|
+
end
|
704
|
+
class RSpec::Mocks::VerifyingMessageExpectation < RSpec::Mocks::MessageExpectation
|
705
|
+
def initialize(*args); end
|
706
|
+
def method_reference; end
|
707
|
+
def method_reference=(arg0); end
|
708
|
+
def validate_expected_arguments!; end
|
709
|
+
def with(*args, &block); end
|
710
|
+
end
|
711
|
+
class RSpec::Mocks::MethodReference
|
712
|
+
def defined?; end
|
713
|
+
def implemented?; end
|
714
|
+
def initialize(object_reference, method_name); end
|
715
|
+
def original_method; end
|
716
|
+
def self.for(object_reference, method_name); end
|
717
|
+
def self.instance_method_visibility_for(klass, method_name); end
|
718
|
+
def self.method_defined_at_any_visibility?(klass, method_name); end
|
719
|
+
def self.method_visibility_for(object, method_name); end
|
720
|
+
def unimplemented?; end
|
721
|
+
def visibility; end
|
722
|
+
def with_signature; end
|
723
|
+
end
|
724
|
+
class RSpec::Mocks::InstanceMethodReference < RSpec::Mocks::MethodReference
|
725
|
+
def find_method(mod); end
|
726
|
+
def method_defined?(mod); end
|
727
|
+
def method_implemented?(mod); end
|
728
|
+
def visibility_from(mod); end
|
729
|
+
end
|
730
|
+
class RSpec::Mocks::ObjectMethodReference < RSpec::Mocks::MethodReference
|
731
|
+
def find_method(object); end
|
732
|
+
def method_defined?(object); end
|
733
|
+
def method_implemented?(object); end
|
734
|
+
def self.for(object_reference, method_name); end
|
735
|
+
def visibility_from(object); end
|
736
|
+
end
|
737
|
+
class RSpec::Mocks::ClassNewMethodReference < RSpec::Mocks::ObjectMethodReference
|
738
|
+
def self.applies_to?(method_name); end
|
739
|
+
def with_signature; end
|
740
|
+
end
|
741
|
+
class RSpec::Mocks::CallbackInvocationStrategy
|
742
|
+
def call(doubled_module); end
|
743
|
+
end
|
744
|
+
class RSpec::Mocks::NoCallbackInvocationStrategy
|
745
|
+
def call(_doubled_module); end
|
746
|
+
end
|
747
|
+
module RSpec::Mocks::VerifyingProxyMethods
|
748
|
+
def add_message_expectation(method_name, opts = nil, &block); end
|
749
|
+
def add_simple_stub(method_name, *args); end
|
750
|
+
def add_stub(method_name, opts = nil, &implementation); end
|
751
|
+
def ensure_implemented(method_name); end
|
752
|
+
def ensure_publicly_implemented(method_name, _object); end
|
753
|
+
end
|
754
|
+
class RSpec::Mocks::VerifyingProxy < RSpec::Mocks::TestDoubleProxy
|
755
|
+
def initialize(object, order_group, doubled_module, method_reference_class); end
|
756
|
+
def method_reference; end
|
757
|
+
def validate_arguments!(method_name, args); end
|
758
|
+
def visibility_for(method_name); end
|
759
|
+
include RSpec::Mocks::VerifyingProxyMethods
|
760
|
+
end
|
761
|
+
class RSpec::Mocks::VerifyingPartialDoubleProxy < RSpec::Mocks::PartialDoubleProxy
|
762
|
+
def ensure_implemented(_method_name); end
|
763
|
+
def initialize(object, expectation_ordering, optional_callback_invocation_strategy = nil); end
|
764
|
+
def method_reference; end
|
765
|
+
include RSpec::Mocks::VerifyingProxyMethods
|
766
|
+
end
|
767
|
+
class RSpec::Mocks::VerifyingPartialClassDoubleProxy < RSpec::Mocks::VerifyingPartialDoubleProxy
|
768
|
+
include RSpec::Mocks::PartialClassDoubleProxyMethods
|
769
|
+
end
|
770
|
+
class RSpec::Mocks::VerifyingMethodDouble < RSpec::Mocks::MethodDouble
|
771
|
+
def add_expectation(*args, &block); end
|
772
|
+
def add_stub(*args, &block); end
|
773
|
+
def initialize(object, method_name, proxy, method_reference); end
|
774
|
+
def message_expectation_class; end
|
775
|
+
def proxy_method_invoked(obj, *args, &block); end
|
776
|
+
def validate_arguments!(actual_args); end
|
777
|
+
end
|
778
|
+
class RSpec::Mocks::VerifyingExistingMethodDouble < RSpec::Mocks::VerifyingMethodDouble
|
779
|
+
def initialize(object, method_name, proxy); end
|
780
|
+
def self.for(object, method_name, proxy); end
|
781
|
+
def unimplemented?; end
|
782
|
+
def with_signature; end
|
783
|
+
end
|
784
|
+
class RSpec::Mocks::VerifyingExistingClassNewMethodDouble < RSpec::Mocks::VerifyingExistingMethodDouble
|
785
|
+
def with_signature; end
|
786
|
+
end
|
787
|
+
module RSpec::Mocks::VerifyingDouble
|
788
|
+
def __send__(name, *args, &block); end
|
789
|
+
def initialize(doubled_module, *args); end
|
790
|
+
def method_missing(message, *args, &block); end
|
791
|
+
def respond_to?(message, include_private = nil); end
|
792
|
+
def send(name, *args, &block); end
|
793
|
+
end
|
794
|
+
class RSpec::Mocks::InstanceVerifyingDouble
|
795
|
+
def __build_mock_proxy(order_group); end
|
796
|
+
include RSpec::Mocks::TestDouble
|
797
|
+
include RSpec::Mocks::VerifyingDouble
|
798
|
+
end
|
799
|
+
module RSpec::Mocks::ObjectVerifyingDoubleMethods
|
800
|
+
def __build_mock_proxy(order_group); end
|
801
|
+
def as_stubbed_const(options = nil); end
|
802
|
+
include RSpec::Mocks::TestDouble
|
803
|
+
include RSpec::Mocks::VerifyingDouble
|
804
|
+
end
|
805
|
+
class RSpec::Mocks::ObjectVerifyingDouble
|
806
|
+
include RSpec::Mocks::ObjectVerifyingDoubleMethods
|
807
|
+
end
|
808
|
+
class RSpec::Mocks::ClassVerifyingDouble < Module
|
809
|
+
include RSpec::Mocks::ObjectVerifyingDoubleMethods
|
810
|
+
end
|
811
|
+
module RSpec::Mocks::Version
|
812
|
+
end
|
813
|
+
module RSpec::Support
|
814
|
+
def self.require_rspec_mocks(f); end
|
815
|
+
end
|
816
|
+
module RSpec::Mocks::Matchers
|
817
|
+
end
|
818
|
+
module RSpec::Mocks::Matchers::Matcher
|
819
|
+
end
|
820
|
+
module RSpec::Mocks::AnyInstance
|
821
|
+
def self.error_generator; end
|
822
|
+
end
|
823
|
+
class RSpec::Mocks::AnyInstance::Chain
|
824
|
+
def constrained_to_any_of?(*constraints); end
|
825
|
+
def expectation_fulfilled!; end
|
826
|
+
def initialize(recorder, *args, &block); end
|
827
|
+
def last_message; end
|
828
|
+
def matches_args?(*args); end
|
829
|
+
def messages; end
|
830
|
+
def negated?; end
|
831
|
+
def never; end
|
832
|
+
def playback!(instance); end
|
833
|
+
def record(rspec_method_name, *args, &block); end
|
834
|
+
def with(*args, &block); end
|
835
|
+
include RSpec::Mocks::AnyInstance::Chain::Customizations
|
836
|
+
end
|
837
|
+
module RSpec::Mocks::AnyInstance::Chain::Customizations
|
838
|
+
def and_call_original(*args, &block); end
|
839
|
+
def and_raise(*args, &block); end
|
840
|
+
def and_return(*args, &block); end
|
841
|
+
def and_throw(*args, &block); end
|
842
|
+
def and_wrap_original(*args, &block); end
|
843
|
+
def and_yield(*args, &block); end
|
844
|
+
def at_least(*args, &block); end
|
845
|
+
def at_most(*args, &block); end
|
846
|
+
def exactly(*args, &block); end
|
847
|
+
def never(*args, &block); end
|
848
|
+
def once(*args, &block); end
|
849
|
+
def self.record(method_name); end
|
850
|
+
def thrice(*args, &block); end
|
851
|
+
def time(*args, &block); end
|
852
|
+
def times(*args, &block); end
|
853
|
+
def twice(*args, &block); end
|
854
|
+
def with(*args, &block); end
|
855
|
+
end
|
856
|
+
class RSpec::Mocks::AnyInstance::ErrorGenerator < RSpec::Mocks::ErrorGenerator
|
857
|
+
def raise_does_not_implement_error(klass, method_name); end
|
858
|
+
def raise_message_already_received_by_other_instance_error(method_name, object_inspect, invoked_instance); end
|
859
|
+
def raise_not_supported_with_prepend_error(method_name, problem_mod); end
|
860
|
+
def raise_second_instance_received_message_error(unfulfilled_expectations); end
|
861
|
+
end
|
862
|
+
class RSpec::Mocks::AnyInstance::StubChain < RSpec::Mocks::AnyInstance::Chain
|
863
|
+
def create_message_expectation_on(instance); end
|
864
|
+
def expectation_fulfilled?; end
|
865
|
+
def invocation_order; end
|
866
|
+
def verify_invocation_order(rspec_method_name, *_args, &_block); end
|
867
|
+
end
|
868
|
+
class RSpec::Mocks::AnyInstance::StubChainChain < RSpec::Mocks::AnyInstance::StubChain
|
869
|
+
def create_message_expectation_on(instance); end
|
870
|
+
def initialize(*args); end
|
871
|
+
def invocation_order; end
|
872
|
+
end
|
873
|
+
class RSpec::Mocks::AnyInstance::ExpectChainChain < RSpec::Mocks::AnyInstance::StubChain
|
874
|
+
def create_message_expectation_on(instance); end
|
875
|
+
def expectation_fulfilled?; end
|
876
|
+
def initialize(*args); end
|
877
|
+
def invocation_order; end
|
878
|
+
def playback!(instance); end
|
879
|
+
end
|
880
|
+
class RSpec::Mocks::AnyInstance::ExpectationChain < RSpec::Mocks::AnyInstance::Chain
|
881
|
+
def expectation_fulfilled?; end
|
882
|
+
def initialize(*args, &block); end
|
883
|
+
def verify_invocation_order(_rspec_method_name, *_args, &_block); end
|
884
|
+
end
|
885
|
+
class RSpec::Mocks::AnyInstance::PositiveExpectationChain < RSpec::Mocks::AnyInstance::ExpectationChain
|
886
|
+
def create_message_expectation_on(instance); end
|
887
|
+
def invocation_order; end
|
888
|
+
end
|
889
|
+
class RSpec::Mocks::AnyInstance::MessageChains
|
890
|
+
def [](method_name); end
|
891
|
+
def add(method_name, chain); end
|
892
|
+
def all_expectations_fulfilled?; end
|
893
|
+
def each_unfulfilled_expectation_matching(method_name, *args); end
|
894
|
+
def has_expectation?(method_name); end
|
895
|
+
def initialize; end
|
896
|
+
def playback!(instance, method_name); end
|
897
|
+
def raise_if_second_instance_to_receive_message(instance); end
|
898
|
+
def received_expected_message!(method_name); end
|
899
|
+
def remove_stub_chains_for!(method_name); end
|
900
|
+
def unfulfilled_expectations; end
|
901
|
+
end
|
902
|
+
class RSpec::Mocks::AnyInstance::Recorder
|
903
|
+
def allow_no_prepended_module_definition_of(method_name); end
|
904
|
+
def already_observing?(method_name); end
|
905
|
+
def ancestor_is_an_observer?(method_name); end
|
906
|
+
def backup_method!(method_name); end
|
907
|
+
def build_alias_method_name(method_name); end
|
908
|
+
def expect_chain(*method_names_and_optional_return_values, &block); end
|
909
|
+
def initialize(klass); end
|
910
|
+
def instance_that_received(method_name); end
|
911
|
+
def klass; end
|
912
|
+
def mark_invoked!(method_name); end
|
913
|
+
def message_chains; end
|
914
|
+
def normalize_chain(*args); end
|
915
|
+
def notify_received_message(_object, message, args, _blk); end
|
916
|
+
def observe!(method_name); end
|
917
|
+
def playback!(instance, method_name); end
|
918
|
+
def public_protected_or_private_method_defined?(method_name); end
|
919
|
+
def received_expected_message!(method_name); end
|
920
|
+
def remove_dummy_method!(method_name); end
|
921
|
+
def restore_method!(method_name); end
|
922
|
+
def restore_original_method!(method_name); end
|
923
|
+
def should_not_receive(method_name, &block); end
|
924
|
+
def should_receive(method_name, &block); end
|
925
|
+
def stop_all_observation!; end
|
926
|
+
def stop_observing!(method_name); end
|
927
|
+
def stub(method_name, &block); end
|
928
|
+
def stub_chain(*method_names_and_optional_return_values, &block); end
|
929
|
+
def stubs; end
|
930
|
+
def super_class_observers_for(method_name); end
|
931
|
+
def super_class_observing?(method_name); end
|
932
|
+
def unstub(method_name); end
|
933
|
+
def verify; end
|
934
|
+
end
|
935
|
+
class RSpec::Mocks::AnyInstance::Proxy
|
936
|
+
def expect_chain(*chain, &block); end
|
937
|
+
def initialize(recorder, target_proxies); end
|
938
|
+
def klass; end
|
939
|
+
def perform_proxying(method_name, args, block, &target_proxy_block); end
|
940
|
+
def should_not_receive(method_name, &block); end
|
941
|
+
def should_receive(method_name, &block); end
|
942
|
+
def stub(method_name_or_method_map, &block); end
|
943
|
+
def stub_chain(*chain, &block); end
|
944
|
+
def unstub(method_name); end
|
945
|
+
end
|
946
|
+
class RSpec::Mocks::AnyInstance::FluentInterfaceProxy
|
947
|
+
def initialize(targets); end
|
948
|
+
def method_missing(*args, &block); end
|
949
|
+
def respond_to_missing?(method_name, include_private = nil); end
|
950
|
+
end
|
951
|
+
class RSpec::Mocks::MessageChain
|
952
|
+
def block; end
|
953
|
+
def chain; end
|
954
|
+
def chain_on(object, *chain, &block); end
|
955
|
+
def find_matching_expectation; end
|
956
|
+
def find_matching_stub; end
|
957
|
+
def format_chain(*chain, &blk); end
|
958
|
+
def initialize(object, *chain, &blk); end
|
959
|
+
def object; end
|
960
|
+
def setup_chain; end
|
961
|
+
end
|
962
|
+
class RSpec::Mocks::ExpectChain < RSpec::Mocks::MessageChain
|
963
|
+
def expectation(object, message, &return_block); end
|
964
|
+
def self.expect_chain_on(object, *chain, &blk); end
|
965
|
+
end
|
966
|
+
class RSpec::Mocks::StubChain < RSpec::Mocks::MessageChain
|
967
|
+
def expectation(object, message, &return_block); end
|
968
|
+
def self.stub_chain_on(object, *chain, &blk); end
|
969
|
+
end
|
970
|
+
class RSpec::Mocks::MarshalExtension
|
971
|
+
def self.patch!; end
|
972
|
+
def self.unpatch!; end
|
973
|
+
end
|
974
|
+
class RSpec::Mocks::Matchers::HaveReceived
|
975
|
+
def apply_constraints_to(expectation); end
|
976
|
+
def at_least(*args); end
|
977
|
+
def at_most(*args); end
|
978
|
+
def capture_failure_message; end
|
979
|
+
def count_constraint; end
|
980
|
+
def description; end
|
981
|
+
def disallow(type, reason = nil); end
|
982
|
+
def does_not_match?(subject); end
|
983
|
+
def ensure_count_unconstrained; end
|
984
|
+
def exactly(*args); end
|
985
|
+
def expect; end
|
986
|
+
def expected_messages_received_in_order?; end
|
987
|
+
def failure_message; end
|
988
|
+
def failure_message_when_negated; end
|
989
|
+
def initialize(method_name, &block); end
|
990
|
+
def matches?(subject, &block); end
|
991
|
+
def mock_proxy; end
|
992
|
+
def name; end
|
993
|
+
def notify_failure_message; end
|
994
|
+
def once(*args); end
|
995
|
+
def ordered(*args); end
|
996
|
+
def setup_allowance(_subject, &_block); end
|
997
|
+
def setup_any_instance_allowance(_subject, &_block); end
|
998
|
+
def setup_any_instance_expectation(_subject, &_block); end
|
999
|
+
def setup_any_instance_negative_expectation(_subject, &_block); end
|
1000
|
+
def setup_expectation(subject, &block); end
|
1001
|
+
def setup_negative_expectation(subject, &block); end
|
1002
|
+
def thrice(*args); end
|
1003
|
+
def time(*args); end
|
1004
|
+
def times(*args); end
|
1005
|
+
def twice(*args); end
|
1006
|
+
def with(*args); end
|
1007
|
+
include RSpec::Mocks::Matchers::Matcher
|
1008
|
+
end
|
1009
|
+
class RSpec::Mocks::Matchers::ExpectationCustomization
|
1010
|
+
def block; end
|
1011
|
+
def block=(arg0); end
|
1012
|
+
def initialize(method_name, args, block); end
|
1013
|
+
def playback_onto(expectation); end
|
1014
|
+
end
|
1015
|
+
class RSpec::Mocks::Matchers::Receive
|
1016
|
+
def and_call_original(*args, **, &block); end
|
1017
|
+
def and_invoke(*args, **, &block); end
|
1018
|
+
def and_raise(*args, **, &block); end
|
1019
|
+
def and_return(*args, **, &block); end
|
1020
|
+
def and_throw(*args, **, &block); end
|
1021
|
+
def and_wrap_original(*args, **, &block); end
|
1022
|
+
def and_yield(*args, **, &block); end
|
1023
|
+
def at_least(*args, **, &block); end
|
1024
|
+
def at_most(*args, **, &block); end
|
1025
|
+
def describable; end
|
1026
|
+
def description; end
|
1027
|
+
def does_not_match?(subject, &block); end
|
1028
|
+
def exactly(*args, **, &block); end
|
1029
|
+
def initialize(message, block); end
|
1030
|
+
def matches?(subject, &block); end
|
1031
|
+
def move_block_to_last_customization(block); end
|
1032
|
+
def name; end
|
1033
|
+
def never(*args, **, &block); end
|
1034
|
+
def once(*args, **, &block); end
|
1035
|
+
def ordered(*args, **, &block); end
|
1036
|
+
def setup_allowance(subject, &block); end
|
1037
|
+
def setup_any_instance_allowance(subject, &block); end
|
1038
|
+
def setup_any_instance_expectation(subject, &block); end
|
1039
|
+
def setup_any_instance_method_substitute(subject, method, block); end
|
1040
|
+
def setup_any_instance_negative_expectation(subject, &block); end
|
1041
|
+
def setup_expectation(subject, &block); end
|
1042
|
+
def setup_method_substitute(host, method, block, *args); end
|
1043
|
+
def setup_mock_proxy_method_substitute(subject, method, block); end
|
1044
|
+
def setup_negative_expectation(subject, &block); end
|
1045
|
+
def thrice(*args, **, &block); end
|
1046
|
+
def time(*args, **, &block); end
|
1047
|
+
def times(*args, **, &block); end
|
1048
|
+
def twice(*args, **, &block); end
|
1049
|
+
def warn_if_any_instance(expression, subject); end
|
1050
|
+
def with(*args, **, &block); end
|
1051
|
+
include RSpec::Mocks::Matchers::Matcher
|
1052
|
+
end
|
1053
|
+
class RSpec::Mocks::Matchers::Receive::DefaultDescribable
|
1054
|
+
def description_for(verb); end
|
1055
|
+
def initialize(message); end
|
1056
|
+
end
|
1057
|
+
class RSpec::Mocks::Matchers::ReceiveMessageChain
|
1058
|
+
def and_call_original(*args, &block); end
|
1059
|
+
def and_invoke(*args, &block); end
|
1060
|
+
def and_raise(*args, &block); end
|
1061
|
+
def and_return(*args, &block); end
|
1062
|
+
def and_throw(*args, &block); end
|
1063
|
+
def and_yield(*args, &block); end
|
1064
|
+
def description; end
|
1065
|
+
def does_not_match?(*_args); end
|
1066
|
+
def formatted_chain; end
|
1067
|
+
def initialize(chain, &block); end
|
1068
|
+
def matches?(subject, &block); end
|
1069
|
+
def name; end
|
1070
|
+
def replay_customizations(chain); end
|
1071
|
+
def setup_allowance(subject, &block); end
|
1072
|
+
def setup_any_instance_allowance(subject, &block); end
|
1073
|
+
def setup_any_instance_expectation(subject, &block); end
|
1074
|
+
def setup_expectation(subject, &block); end
|
1075
|
+
def setup_negative_expectation(*_args); end
|
1076
|
+
def with(*args, &block); end
|
1077
|
+
include RSpec::Mocks::Matchers::Matcher
|
1078
|
+
end
|
1079
|
+
class RSpec::Mocks::Matchers::ReceiveMessages
|
1080
|
+
def any_instance_of(subject); end
|
1081
|
+
def description; end
|
1082
|
+
def does_not_match?(_subject); end
|
1083
|
+
def each_message_on(host); end
|
1084
|
+
def initialize(message_return_value_hash); end
|
1085
|
+
def matches?(subject); end
|
1086
|
+
def name; end
|
1087
|
+
def proxy_on(subject); end
|
1088
|
+
def setup_allowance(subject); end
|
1089
|
+
def setup_any_instance_allowance(subject); end
|
1090
|
+
def setup_any_instance_expectation(subject); end
|
1091
|
+
def setup_expectation(subject); end
|
1092
|
+
def setup_negative_expectation(_subject); end
|
1093
|
+
def warn_about_block; end
|
1094
|
+
include RSpec::Mocks::Matchers::Matcher
|
1095
|
+
end
|