xtj 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/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +10 -0
- data/.travis.yml +11 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +57 -0
- data/LICENSE.txt +21 -0
- data/README.md +54 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/xtj/handlers/xml_handler.rb +47 -0
- data/lib/xtj/tags/xml_tag.rb +29 -0
- data/lib/xtj/version.rb +6 -0
- data/lib/xtj.rb +39 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/rake.rbi +643 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1686 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +387 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +818 -0
- data/sorbet/rbi/gems/rspec-support.rbi +268 -0
- data/sorbet/rbi/gems/rspec.rbi +14 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +2477 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +5274 -0
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8682 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/xtj.gemspec +27 -0
- metadata +115 -0
@@ -0,0 +1,818 @@
|
|
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.8.1
|
11
|
+
module RSpec
|
12
|
+
end
|
13
|
+
module RSpec::Mocks
|
14
|
+
def self.allow_message(subject, message, opts = nil, &block); end
|
15
|
+
def self.configuration; end
|
16
|
+
def self.error_generator; end
|
17
|
+
def self.expect_message(subject, message, opts = nil, &block); end
|
18
|
+
def self.setup; end
|
19
|
+
def self.space; end
|
20
|
+
def self.teardown; end
|
21
|
+
def self.verify; end
|
22
|
+
def self.with_temporary_scope; end
|
23
|
+
end
|
24
|
+
class RSpec::Mocks::InstanceMethodStasher
|
25
|
+
def handle_restoration_failures; end
|
26
|
+
def initialize(object, method); end
|
27
|
+
def method_defined_directly_on_klass?; end
|
28
|
+
def method_defined_on_klass?(klass = nil); end
|
29
|
+
def method_is_stashed?; end
|
30
|
+
def method_owned_by_klass?; end
|
31
|
+
def original_method; end
|
32
|
+
def restore; end
|
33
|
+
def stash; end
|
34
|
+
end
|
35
|
+
class RSpec::Mocks::MethodDouble
|
36
|
+
def add_default_stub(*args, &implementation); end
|
37
|
+
def add_expectation(error_generator, expectation_ordering, expected_from, opts, &implementation); end
|
38
|
+
def add_simple_expectation(method_name, response, error_generator, backtrace_line); end
|
39
|
+
def add_simple_stub(method_name, response); end
|
40
|
+
def add_stub(error_generator, expectation_ordering, expected_from, opts = nil, &implementation); end
|
41
|
+
def build_expectation(error_generator, expectation_ordering); end
|
42
|
+
def clear; end
|
43
|
+
def configure_method; end
|
44
|
+
def define_proxy_method; end
|
45
|
+
def definition_target; end
|
46
|
+
def expectations; end
|
47
|
+
def initialize(object, method_name, proxy); end
|
48
|
+
def message_expectation_class; end
|
49
|
+
def method_name; end
|
50
|
+
def method_stasher; end
|
51
|
+
def new_rspec_prepended_module; end
|
52
|
+
def object; end
|
53
|
+
def object_singleton_class; end
|
54
|
+
def original_implementation_callable; end
|
55
|
+
def original_method; end
|
56
|
+
def proxy_method_invoked(_obj, *args, &block); end
|
57
|
+
def raise_method_not_stubbed_error; end
|
58
|
+
def remove_method_from_definition_target; end
|
59
|
+
def remove_stub; end
|
60
|
+
def remove_stub_if_present; end
|
61
|
+
def reset; end
|
62
|
+
def restore_original_method; end
|
63
|
+
def restore_original_visibility; end
|
64
|
+
def save_original_implementation_callable!; end
|
65
|
+
def setup_simple_method_double(method_name, response, collection, error_generator = nil, backtrace_line = nil); end
|
66
|
+
def show_frozen_warning; end
|
67
|
+
def stubs; end
|
68
|
+
def usable_rspec_prepended_module; end
|
69
|
+
def verify; end
|
70
|
+
def visibility; end
|
71
|
+
end
|
72
|
+
class RSpec::Mocks::MethodDouble::RSpecPrependedModule < Module
|
73
|
+
end
|
74
|
+
module RSpec::Mocks::ArgumentMatchers
|
75
|
+
def a_kind_of(klass); end
|
76
|
+
def an_instance_of(klass); end
|
77
|
+
def any_args; end
|
78
|
+
def anything; end
|
79
|
+
def array_including(*args); end
|
80
|
+
def boolean; end
|
81
|
+
def duck_type(*args); end
|
82
|
+
def hash_excluding(*args); end
|
83
|
+
def hash_including(*args); end
|
84
|
+
def hash_not_including(*args); end
|
85
|
+
def instance_of(klass); end
|
86
|
+
def kind_of(klass); end
|
87
|
+
def no_args; end
|
88
|
+
def self.anythingize_lonely_keys(*args); end
|
89
|
+
end
|
90
|
+
class RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
91
|
+
def self.inherited(subklass); end
|
92
|
+
def self.new(*arg0); end
|
93
|
+
end
|
94
|
+
class RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
95
|
+
def description; end
|
96
|
+
end
|
97
|
+
class RSpec::Mocks::ArgumentMatchers::AnyArgMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
98
|
+
def ===(_other); end
|
99
|
+
def description; end
|
100
|
+
end
|
101
|
+
class RSpec::Mocks::ArgumentMatchers::NoArgsMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
102
|
+
def description; end
|
103
|
+
end
|
104
|
+
class RSpec::Mocks::ArgumentMatchers::BooleanMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
|
105
|
+
def ===(value); end
|
106
|
+
def description; end
|
107
|
+
end
|
108
|
+
class RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
|
109
|
+
def ===(predicate, actual); end
|
110
|
+
def description(name); end
|
111
|
+
def formatted_expected_hash; end
|
112
|
+
def initialize(expected); end
|
113
|
+
end
|
114
|
+
class RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher < RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
|
115
|
+
def ===(actual); end
|
116
|
+
def description; end
|
117
|
+
end
|
118
|
+
class RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher < RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
|
119
|
+
def ===(actual); end
|
120
|
+
def description; end
|
121
|
+
end
|
122
|
+
class RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher
|
123
|
+
def ===(actual); end
|
124
|
+
def description; end
|
125
|
+
def formatted_expected_values; end
|
126
|
+
def initialize(expected); end
|
127
|
+
end
|
128
|
+
class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher
|
129
|
+
def ===(value); end
|
130
|
+
def description; end
|
131
|
+
def initialize(*methods_to_respond_to); end
|
132
|
+
end
|
133
|
+
class RSpec::Mocks::ArgumentMatchers::InstanceOf
|
134
|
+
def ===(actual); end
|
135
|
+
def description; end
|
136
|
+
def initialize(klass); end
|
137
|
+
end
|
138
|
+
class RSpec::Mocks::ArgumentMatchers::KindOf
|
139
|
+
def ===(actual); end
|
140
|
+
def description; end
|
141
|
+
def initialize(klass); end
|
142
|
+
end
|
143
|
+
class RSpec::Mocks::ObjectReference
|
144
|
+
def self.anonymous_module?(mod); end
|
145
|
+
def self.for(object_module_or_name, allow_direct_object_refs = nil); end
|
146
|
+
def self.name_of(mod); end
|
147
|
+
end
|
148
|
+
class RSpec::Mocks::DirectObjectReference
|
149
|
+
def const_to_replace; end
|
150
|
+
def defined?; end
|
151
|
+
def description; end
|
152
|
+
def initialize(object); end
|
153
|
+
def target; end
|
154
|
+
def when_loaded; end
|
155
|
+
end
|
156
|
+
class RSpec::Mocks::NamedObjectReference
|
157
|
+
def const_to_replace; end
|
158
|
+
def defined?; end
|
159
|
+
def description; end
|
160
|
+
def initialize(const_name); end
|
161
|
+
def object; end
|
162
|
+
def target; end
|
163
|
+
def when_loaded; end
|
164
|
+
end
|
165
|
+
module RSpec::Mocks::ExampleMethods
|
166
|
+
def allow(target); end
|
167
|
+
def allow_any_instance_of(klass); end
|
168
|
+
def allow_message_expectations_on_nil; end
|
169
|
+
def class_double(doubled_class, *args); end
|
170
|
+
def class_spy(*args); end
|
171
|
+
def double(*args); end
|
172
|
+
def expect_any_instance_of(klass); end
|
173
|
+
def have_received(method_name, &block); end
|
174
|
+
def hide_const(constant_name); end
|
175
|
+
def instance_double(doubled_class, *args); end
|
176
|
+
def instance_spy(*args); end
|
177
|
+
def object_double(object_or_name, *args); end
|
178
|
+
def object_spy(*args); end
|
179
|
+
def receive(method_name, &block); end
|
180
|
+
def receive_message_chain(*messages, &block); end
|
181
|
+
def receive_messages(message_return_value_hash); end
|
182
|
+
def self.declare_double(type, *args); end
|
183
|
+
def self.declare_verifying_double(type, ref, *args); end
|
184
|
+
def self.extended(object); end
|
185
|
+
def self.included(klass); end
|
186
|
+
def spy(*args); end
|
187
|
+
def stub_const(constant_name, value, options = nil); end
|
188
|
+
def without_partial_double_verification; end
|
189
|
+
include RSpec::Mocks::ArgumentMatchers
|
190
|
+
end
|
191
|
+
module RSpec::Mocks::ExampleMethods::ExpectHost
|
192
|
+
def expect(target); end
|
193
|
+
end
|
194
|
+
class RSpec::Mocks::Proxy
|
195
|
+
def add_message_expectation(method_name, opts = nil, &block); end
|
196
|
+
def add_simple_expectation(method_name, response, location); end
|
197
|
+
def add_simple_stub(method_name, response); end
|
198
|
+
def add_stub(method_name, opts = nil, &implementation); end
|
199
|
+
def as_null_object; end
|
200
|
+
def build_expectation(method_name); end
|
201
|
+
def check_for_unexpected_arguments(expectation); end
|
202
|
+
def ensure_implemented(*_args); end
|
203
|
+
def find_almost_matching_expectation(method_name, *args); end
|
204
|
+
def find_almost_matching_stub(method_name, *args); end
|
205
|
+
def find_best_matching_expectation_for(method_name); end
|
206
|
+
def find_matching_expectation(method_name, *args); end
|
207
|
+
def find_matching_method_stub(method_name, *args); end
|
208
|
+
def has_negative_expectation?(message); end
|
209
|
+
def initialize(object, order_group, options = nil); end
|
210
|
+
def message_received(message, *args, &block); end
|
211
|
+
def messages_arg_list; end
|
212
|
+
def method_double_for(message); end
|
213
|
+
def method_double_if_exists_for_message(message); end
|
214
|
+
def null_object?; end
|
215
|
+
def object; end
|
216
|
+
def original_method_handle_for(_message); end
|
217
|
+
def prepended_modules_of_singleton_class; end
|
218
|
+
def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
|
219
|
+
def raise_unexpected_message_error(method_name, args); end
|
220
|
+
def received_message?(method_name, *args, &block); end
|
221
|
+
def record_message_received(message, *args, &block); end
|
222
|
+
def remove_stub(method_name); end
|
223
|
+
def remove_stub_if_present(method_name); end
|
224
|
+
def replay_received_message_on(expectation, &block); end
|
225
|
+
def reset; end
|
226
|
+
def self.prepended_modules_of(klass); end
|
227
|
+
def verify; end
|
228
|
+
def visibility_for(_method_name); end
|
229
|
+
end
|
230
|
+
class RSpec::Mocks::Proxy::SpecificMessage < Struct
|
231
|
+
def ==(expectation); end
|
232
|
+
def args; end
|
233
|
+
def args=(_); end
|
234
|
+
def message; end
|
235
|
+
def message=(_); end
|
236
|
+
def object; end
|
237
|
+
def object=(_); end
|
238
|
+
def self.[](*arg0); end
|
239
|
+
def self.inspect; end
|
240
|
+
def self.members; end
|
241
|
+
def self.new(*arg0); end
|
242
|
+
end
|
243
|
+
class RSpec::Mocks::TestDoubleProxy < RSpec::Mocks::Proxy
|
244
|
+
def reset; end
|
245
|
+
end
|
246
|
+
class RSpec::Mocks::PartialDoubleProxy < RSpec::Mocks::Proxy
|
247
|
+
def add_simple_expectation(method_name, response, location); end
|
248
|
+
def add_simple_stub(method_name, response); end
|
249
|
+
def any_instance_class_recorder_observing_method?(klass, method_name); end
|
250
|
+
def message_received(message, *args, &block); end
|
251
|
+
def original_method_handle_for(message); end
|
252
|
+
def reset; end
|
253
|
+
def visibility_for(method_name); end
|
254
|
+
end
|
255
|
+
module RSpec::Mocks::PartialClassDoubleProxyMethods
|
256
|
+
def initialize(source_space, *args); end
|
257
|
+
def method_double_from_ancestor_for(message); end
|
258
|
+
def original_method_handle_for(message); end
|
259
|
+
def original_unbound_method_handle_from_ancestor_for(message); end
|
260
|
+
def superclass_proxy; end
|
261
|
+
end
|
262
|
+
class RSpec::Mocks::PartialClassDoubleProxy < RSpec::Mocks::PartialDoubleProxy
|
263
|
+
include RSpec::Mocks::PartialClassDoubleProxyMethods
|
264
|
+
end
|
265
|
+
class RSpec::Mocks::ProxyForNil < RSpec::Mocks::PartialDoubleProxy
|
266
|
+
def add_message_expectation(method_name, opts = nil, &block); end
|
267
|
+
def add_stub(method_name, opts = nil, &implementation); end
|
268
|
+
def disallow_expectations; end
|
269
|
+
def disallow_expectations=(arg0); end
|
270
|
+
def initialize(order_group); end
|
271
|
+
def raise_error(method_name); end
|
272
|
+
def set_expectation_behavior; end
|
273
|
+
def warn(method_name); end
|
274
|
+
def warn_about_expectations; end
|
275
|
+
def warn_about_expectations=(arg0); end
|
276
|
+
def warn_or_raise!(method_name); end
|
277
|
+
end
|
278
|
+
module RSpec::Mocks::TestDouble
|
279
|
+
def ==(other); end
|
280
|
+
def __build_mock_proxy(order_group); end
|
281
|
+
def __build_mock_proxy_unless_expired(order_group); end
|
282
|
+
def __disallow_further_usage!; end
|
283
|
+
def __mock_proxy; end
|
284
|
+
def __raise_expired_error; end
|
285
|
+
def as_null_object; end
|
286
|
+
def assign_stubs(stubs); end
|
287
|
+
def freeze; end
|
288
|
+
def initialize(name = nil, stubs = nil); end
|
289
|
+
def initialize_copy(other); end
|
290
|
+
def inspect; end
|
291
|
+
def method_missing(message, *args, &block); end
|
292
|
+
def null_object?; end
|
293
|
+
def respond_to?(message, incl_private = nil); end
|
294
|
+
def to_s; end
|
295
|
+
end
|
296
|
+
class RSpec::Mocks::Double
|
297
|
+
include RSpec::Mocks::TestDouble
|
298
|
+
end
|
299
|
+
module RSpec::Mocks::TestDoubleFormatter
|
300
|
+
def self.format(dbl, unwrap = nil); end
|
301
|
+
def self.name_desc(dbl); end
|
302
|
+
def self.type_desc(dbl); end
|
303
|
+
def self.verified_module_desc(dbl); end
|
304
|
+
end
|
305
|
+
class RSpec::Mocks::ArgumentListMatcher
|
306
|
+
def args_match?(*args); end
|
307
|
+
def ensure_expected_args_valid!; end
|
308
|
+
def expected_args; end
|
309
|
+
def initialize(*expected_args); end
|
310
|
+
def replace_any_args_with_splat_of_anything(before_count, actual_args_count); end
|
311
|
+
def resolve_expected_args_based_on(actual_args); end
|
312
|
+
end
|
313
|
+
class RSpec::Mocks::SimpleMessageExpectation
|
314
|
+
def called_max_times?; end
|
315
|
+
def initialize(message, response, error_generator, backtrace_line = nil); end
|
316
|
+
def invoke(*_); end
|
317
|
+
def matches?(message, *_); end
|
318
|
+
def unadvise(_); end
|
319
|
+
def verify_messages_received; end
|
320
|
+
end
|
321
|
+
class RSpec::Mocks::MessageExpectation
|
322
|
+
def and_call_original; end
|
323
|
+
def and_raise(*args); end
|
324
|
+
def and_return(first_value, *values); end
|
325
|
+
def and_throw(*args); end
|
326
|
+
def and_wrap_original(&block); end
|
327
|
+
def and_yield(*args, &block); end
|
328
|
+
def at_least(n, &block); end
|
329
|
+
def at_most(n, &block); end
|
330
|
+
def exactly(n, &block); end
|
331
|
+
def inspect; end
|
332
|
+
def never; end
|
333
|
+
def once(&block); end
|
334
|
+
def ordered(&block); end
|
335
|
+
def thrice(&block); end
|
336
|
+
def times(&block); end
|
337
|
+
def to_s; end
|
338
|
+
def twice(&block); end
|
339
|
+
def with(*args, &block); end
|
340
|
+
include RSpec::Mocks::MessageExpectation::ImplementationDetails
|
341
|
+
end
|
342
|
+
module RSpec::Mocks::MessageExpectation::ImplementationDetails
|
343
|
+
def actual_received_count_matters?; end
|
344
|
+
def additional_expected_calls; end
|
345
|
+
def advise(*args); end
|
346
|
+
def and_yield_receiver_to_implementation; end
|
347
|
+
def argument_list_matcher=(arg0); end
|
348
|
+
def called_max_times?; end
|
349
|
+
def description_for(verb); end
|
350
|
+
def ensure_expected_ordering_received!; end
|
351
|
+
def error_generator; end
|
352
|
+
def error_generator=(arg0); end
|
353
|
+
def exception_source_id; end
|
354
|
+
def expectation_count_type; end
|
355
|
+
def expected_args; end
|
356
|
+
def expected_from=(arg0); end
|
357
|
+
def expected_messages_received?; end
|
358
|
+
def expected_received_count=(arg0); end
|
359
|
+
def generate_error; end
|
360
|
+
def has_been_invoked?; end
|
361
|
+
def ignoring_args?; end
|
362
|
+
def implementation; end
|
363
|
+
def implementation=(arg0); end
|
364
|
+
def increase_actual_received_count!; end
|
365
|
+
def initial_implementation_action=(action); end
|
366
|
+
def initialize(error_generator, expectation_ordering, expected_from, method_double, type = nil, opts = nil, &implementation_block); end
|
367
|
+
def inner_implementation_action=(action); end
|
368
|
+
def invoke(parent_stub, *args, &block); end
|
369
|
+
def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, &block); end
|
370
|
+
def invoke_without_incrementing_received_count(parent_stub, *args, &block); end
|
371
|
+
def matches?(message, *args); end
|
372
|
+
def matches_at_least_count?; end
|
373
|
+
def matches_at_most_count?; end
|
374
|
+
def matches_exact_count?; end
|
375
|
+
def matches_name_but_not_args(message, *args); end
|
376
|
+
def message; end
|
377
|
+
def negative?; end
|
378
|
+
def negative_expectation_for?(message); end
|
379
|
+
def ordered?; end
|
380
|
+
def orig_object; end
|
381
|
+
def raise_already_invoked_error_if_necessary(calling_customization); end
|
382
|
+
def raise_out_of_order_error; end
|
383
|
+
def raise_unexpected_message_args_error(args_for_multiple_calls); end
|
384
|
+
def safe_invoke(parent_stub, *args, &block); end
|
385
|
+
def set_expected_received_count(relativity, n); end
|
386
|
+
def similar_messages; end
|
387
|
+
def terminal_implementation_action=(action); end
|
388
|
+
def type; end
|
389
|
+
def unadvise(args); end
|
390
|
+
def verify_messages_received; end
|
391
|
+
def warn_about_stub_override; end
|
392
|
+
def wrap_original(method_name, &block); end
|
393
|
+
def yield_receiver_to_implementation_block?; end
|
394
|
+
end
|
395
|
+
class RSpec::Mocks::AndYieldImplementation
|
396
|
+
def call(*_args_to_ignore, &block); end
|
397
|
+
def initialize(args_to_yield, eval_context, error_generator); end
|
398
|
+
end
|
399
|
+
class RSpec::Mocks::AndReturnImplementation
|
400
|
+
def call(*_args_to_ignore, &_block); end
|
401
|
+
def initialize(values_to_return); end
|
402
|
+
end
|
403
|
+
class RSpec::Mocks::Implementation
|
404
|
+
def actions; end
|
405
|
+
def call(*args, &block); end
|
406
|
+
def initial_action; end
|
407
|
+
def initial_action=(arg0); end
|
408
|
+
def inner_action; end
|
409
|
+
def inner_action=(arg0); end
|
410
|
+
def present?; end
|
411
|
+
def terminal_action; end
|
412
|
+
def terminal_action=(arg0); end
|
413
|
+
end
|
414
|
+
class RSpec::Mocks::AndWrapOriginalImplementation
|
415
|
+
def call(*args, &block); end
|
416
|
+
def cannot_modify_further_error; end
|
417
|
+
def initial_action=(_value); end
|
418
|
+
def initialize(method, block); end
|
419
|
+
def inner_action; end
|
420
|
+
def inner_action=(_value); end
|
421
|
+
def present?; end
|
422
|
+
def terminal_action=(_value); end
|
423
|
+
end
|
424
|
+
class RSpec::Mocks::AndWrapOriginalImplementation::CannotModifyFurtherError < StandardError
|
425
|
+
end
|
426
|
+
class RSpec::Mocks::OrderGroup
|
427
|
+
def clear; end
|
428
|
+
def consume; end
|
429
|
+
def empty?; end
|
430
|
+
def expectation_for(message); end
|
431
|
+
def expectations_invoked_in_order?; end
|
432
|
+
def expected_invocations; end
|
433
|
+
def handle_order_constraint(expectation); end
|
434
|
+
def initialize; end
|
435
|
+
def invoked(message); end
|
436
|
+
def invoked_expectations; end
|
437
|
+
def ready_for?(expectation); end
|
438
|
+
def register(expectation); end
|
439
|
+
def remaining_expectations; end
|
440
|
+
def verify_invocation_order(expectation); end
|
441
|
+
end
|
442
|
+
class RSpec::Mocks::MockExpectationError < Exception
|
443
|
+
end
|
444
|
+
class RSpec::Mocks::ExpiredTestDoubleError < RSpec::Mocks::MockExpectationError
|
445
|
+
end
|
446
|
+
class RSpec::Mocks::OutsideOfExampleError < StandardError
|
447
|
+
end
|
448
|
+
class RSpec::Mocks::MockExpectationAlreadyInvokedError < Exception
|
449
|
+
end
|
450
|
+
class RSpec::Mocks::CannotSupportArgMutationsError < StandardError
|
451
|
+
end
|
452
|
+
class RSpec::Mocks::UnsupportedMatcherError < StandardError
|
453
|
+
end
|
454
|
+
class RSpec::Mocks::NegationUnsupportedError < StandardError
|
455
|
+
end
|
456
|
+
class RSpec::Mocks::VerifyingDoubleNotDefinedError < StandardError
|
457
|
+
end
|
458
|
+
class RSpec::Mocks::ErrorGenerator
|
459
|
+
def __raise(message, backtrace_line = nil, source_id = nil); end
|
460
|
+
def arg_list(args); end
|
461
|
+
def count_message(count, expectation_count_type = nil); end
|
462
|
+
def default_error_message(expectation, expected_args, actual_args); end
|
463
|
+
def describe_expectation(verb, message, expected_received_count, _actual_received_count, args); end
|
464
|
+
def diff_message(expected_args, actual_args); end
|
465
|
+
def differ; end
|
466
|
+
def error_message(expectation, args_for_multiple_calls); end
|
467
|
+
def expectation_on_nil_message(method_name); end
|
468
|
+
def expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher); end
|
469
|
+
def format_args(args); end
|
470
|
+
def format_received_args(args_for_multiple_calls); end
|
471
|
+
def group_count(index, args); end
|
472
|
+
def grouped_args(args); end
|
473
|
+
def initialize(target = nil); end
|
474
|
+
def intro(unwrapped = nil); end
|
475
|
+
def list_of_exactly_one_string?(args); end
|
476
|
+
def method_call_args_description(args, generic_prefix = nil, matcher_prefix = nil); end
|
477
|
+
def notify(*args); end
|
478
|
+
def opts; end
|
479
|
+
def opts=(arg0); end
|
480
|
+
def prepend_to_backtrace(exception, line); end
|
481
|
+
def raise_already_invoked_error(message, calling_customization); end
|
482
|
+
def raise_cant_constrain_count_for_negated_have_received_error(count_constraint); end
|
483
|
+
def raise_double_negation_error(wrapped_expression); end
|
484
|
+
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
|
485
|
+
def raise_expectation_on_mocked_method(method); end
|
486
|
+
def raise_expectation_on_nil_error(method_name); end
|
487
|
+
def raise_expectation_on_unstubbed_method(method); end
|
488
|
+
def raise_expired_test_double_error; end
|
489
|
+
def raise_have_received_disallowed(type, reason); end
|
490
|
+
def raise_invalid_arguments_error(verifier); end
|
491
|
+
def raise_method_not_stubbed_error(method_name); end
|
492
|
+
def raise_missing_block_error(args_to_yield); end
|
493
|
+
def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
|
494
|
+
def raise_non_public_error(method_name, visibility); end
|
495
|
+
def raise_only_valid_on_a_partial_double(method); end
|
496
|
+
def raise_out_of_order_error(message); end
|
497
|
+
def raise_similar_message_args_error(expectation, args_for_multiple_calls, backtrace_line = nil); end
|
498
|
+
def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id = nil); end
|
499
|
+
def raise_unexpected_message_error(message, args); end
|
500
|
+
def raise_unimplemented_error(doubled_module, method_name, object); end
|
501
|
+
def raise_verifying_double_not_defined_error(ref); end
|
502
|
+
def raise_wrong_arity_error(args_to_yield, signature); end
|
503
|
+
def received_part_of_expectation_error(actual_received_count, args); end
|
504
|
+
def times(count); end
|
505
|
+
def unexpected_arguments_message(expected_args_string, actual_args_string); end
|
506
|
+
def unpack_string_args(formatted_expected_args, actual_args); end
|
507
|
+
end
|
508
|
+
class RSpec::Mocks::RootSpace
|
509
|
+
def any_instance_proxy_for(*_args); end
|
510
|
+
def any_instance_recorder_for(*_args); end
|
511
|
+
def any_instance_recorders_from_ancestry_of(_object); end
|
512
|
+
def new_scope; end
|
513
|
+
def proxy_for(*_args); end
|
514
|
+
def raise_lifecycle_message; end
|
515
|
+
def register_constant_mutator(_mutator); end
|
516
|
+
def registered?(_object); end
|
517
|
+
def reset_all; end
|
518
|
+
def superclass_proxy_for(*_args); end
|
519
|
+
def verify_all; end
|
520
|
+
end
|
521
|
+
class RSpec::Mocks::Space
|
522
|
+
def any_instance_mutex; end
|
523
|
+
def any_instance_proxy_for(klass); end
|
524
|
+
def any_instance_recorder_for(klass, only_return_existing = nil); end
|
525
|
+
def any_instance_recorder_not_found_for(id, klass); end
|
526
|
+
def any_instance_recorders; end
|
527
|
+
def any_instance_recorders_from_ancestry_of(object); end
|
528
|
+
def class_proxy_with_callback_verification_strategy(object, strategy); end
|
529
|
+
def constant_mutator_for(name); end
|
530
|
+
def ensure_registered(object); end
|
531
|
+
def id_for(object); end
|
532
|
+
def initialize; end
|
533
|
+
def new_mutex; end
|
534
|
+
def new_scope; end
|
535
|
+
def proxies; end
|
536
|
+
def proxies_of(klass); end
|
537
|
+
def proxy_for(object); end
|
538
|
+
def proxy_mutex; end
|
539
|
+
def proxy_not_found_for(id, object); end
|
540
|
+
def register_constant_mutator(mutator); end
|
541
|
+
def registered?(object); end
|
542
|
+
def reset_all; end
|
543
|
+
def superclass_proxy_for(klass); end
|
544
|
+
def superclass_proxy_not_found_for(id, object); end
|
545
|
+
def verify_all; end
|
546
|
+
end
|
547
|
+
class RSpec::Mocks::NestedSpace < RSpec::Mocks::Space
|
548
|
+
def any_instance_recorder_not_found_for(id, klass); end
|
549
|
+
def constant_mutator_for(name); end
|
550
|
+
def initialize(parent); end
|
551
|
+
def proxies_of(klass); end
|
552
|
+
def proxy_not_found_for(id, object); end
|
553
|
+
def registered?(object); end
|
554
|
+
end
|
555
|
+
class RSpec::Mocks::Constant
|
556
|
+
def hidden=(arg0); end
|
557
|
+
def hidden?; end
|
558
|
+
def initialize(name); end
|
559
|
+
def inspect; end
|
560
|
+
def mutated?; end
|
561
|
+
def name; end
|
562
|
+
def original_value; end
|
563
|
+
def original_value=(arg0); end
|
564
|
+
def previously_defined=(arg0); end
|
565
|
+
def previously_defined?; end
|
566
|
+
def self.original(name); end
|
567
|
+
def self.unmutated(name); end
|
568
|
+
def stubbed=(arg0); end
|
569
|
+
def stubbed?; end
|
570
|
+
def to_s; end
|
571
|
+
def valid_name=(arg0); end
|
572
|
+
def valid_name?; end
|
573
|
+
extend RSpec::Support::RecursiveConstMethods
|
574
|
+
end
|
575
|
+
class RSpec::Mocks::ConstantMutator
|
576
|
+
def self.hide(constant_name); end
|
577
|
+
def self.mutate(mutator); end
|
578
|
+
def self.raise_on_invalid_const; end
|
579
|
+
def self.stub(constant_name, value, options = nil); end
|
580
|
+
extend RSpec::Support::RecursiveConstMethods
|
581
|
+
end
|
582
|
+
class RSpec::Mocks::ConstantMutator::BaseMutator
|
583
|
+
def full_constant_name; end
|
584
|
+
def idempotently_reset; end
|
585
|
+
def initialize(full_constant_name, mutated_value, transfer_nested_constants); end
|
586
|
+
def original_value; end
|
587
|
+
def to_constant; end
|
588
|
+
include RSpec::Support::RecursiveConstMethods
|
589
|
+
end
|
590
|
+
class RSpec::Mocks::ConstantMutator::ConstantHider < RSpec::Mocks::ConstantMutator::BaseMutator
|
591
|
+
def mutate; end
|
592
|
+
def reset; end
|
593
|
+
def to_constant; end
|
594
|
+
end
|
595
|
+
class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < RSpec::Mocks::ConstantMutator::BaseMutator
|
596
|
+
def initialize(*args); end
|
597
|
+
def mutate; end
|
598
|
+
def reset; end
|
599
|
+
def should_transfer_nested_constants?; end
|
600
|
+
def to_constant; end
|
601
|
+
def transfer_nested_constants; end
|
602
|
+
def verify_constants_to_transfer!; end
|
603
|
+
end
|
604
|
+
class RSpec::Mocks::ConstantMutator::UndefinedConstantSetter < RSpec::Mocks::ConstantMutator::BaseMutator
|
605
|
+
def mutate; end
|
606
|
+
def name_for(parent, name); end
|
607
|
+
def reset; end
|
608
|
+
def to_constant; end
|
609
|
+
end
|
610
|
+
module RSpec::Mocks::TargetDelegationClassMethods
|
611
|
+
def delegate_not_to(matcher_method, options = nil); end
|
612
|
+
def delegate_to(matcher_method); end
|
613
|
+
def disallow_negation(method_name); end
|
614
|
+
end
|
615
|
+
module RSpec::Mocks::TargetDelegationInstanceMethods
|
616
|
+
def define_matcher(matcher, name, &block); end
|
617
|
+
def matcher_allowed?(matcher); end
|
618
|
+
def raise_negation_unsupported(method_name, matcher); end
|
619
|
+
def raise_unsupported_matcher(method_name, matcher); end
|
620
|
+
def target; end
|
621
|
+
end
|
622
|
+
class RSpec::Mocks::TargetBase
|
623
|
+
def initialize(target); end
|
624
|
+
extend RSpec::Mocks::TargetDelegationClassMethods
|
625
|
+
include RSpec::Mocks::TargetDelegationInstanceMethods
|
626
|
+
end
|
627
|
+
module RSpec::Mocks::ExpectationTargetMethods
|
628
|
+
def expression; end
|
629
|
+
def not_to(matcher, &block); end
|
630
|
+
def to(matcher, &block); end
|
631
|
+
def to_not(matcher, &block); end
|
632
|
+
extend RSpec::Mocks::TargetDelegationClassMethods
|
633
|
+
include RSpec::Mocks::TargetDelegationInstanceMethods
|
634
|
+
end
|
635
|
+
class RSpec::Mocks::ExpectationTarget < RSpec::Mocks::TargetBase
|
636
|
+
include RSpec::Mocks::ExpectationTargetMethods
|
637
|
+
end
|
638
|
+
class RSpec::Mocks::AllowanceTarget < RSpec::Mocks::TargetBase
|
639
|
+
def expression; end
|
640
|
+
def not_to(matcher, *_args); end
|
641
|
+
def to(matcher, &block); end
|
642
|
+
def to_not(matcher, *_args); end
|
643
|
+
end
|
644
|
+
class RSpec::Mocks::AnyInstanceAllowanceTarget < RSpec::Mocks::TargetBase
|
645
|
+
def expression; end
|
646
|
+
def not_to(matcher, *_args); end
|
647
|
+
def to(matcher, &block); end
|
648
|
+
def to_not(matcher, *_args); end
|
649
|
+
end
|
650
|
+
class RSpec::Mocks::AnyInstanceExpectationTarget < RSpec::Mocks::TargetBase
|
651
|
+
def expression; end
|
652
|
+
def not_to(matcher, &block); end
|
653
|
+
def to(matcher, &block); end
|
654
|
+
def to_not(matcher, &block); end
|
655
|
+
end
|
656
|
+
module RSpec::Mocks::Syntax
|
657
|
+
def self.default_should_syntax_host; end
|
658
|
+
def self.disable_expect(syntax_host = nil); end
|
659
|
+
def self.disable_should(syntax_host = nil); end
|
660
|
+
def self.enable_expect(syntax_host = nil); end
|
661
|
+
def self.enable_should(syntax_host = nil); end
|
662
|
+
def self.expect_enabled?(syntax_host = nil); end
|
663
|
+
def self.should_enabled?(syntax_host = nil); end
|
664
|
+
def self.warn_about_should!; end
|
665
|
+
def self.warn_unless_should_configured(method_name, replacement = nil); end
|
666
|
+
end
|
667
|
+
class BasicObject
|
668
|
+
end
|
669
|
+
class Class < Module
|
670
|
+
end
|
671
|
+
class RSpec::Mocks::Configuration
|
672
|
+
def add_stub_and_should_receive_to(*modules); end
|
673
|
+
def allow_message_expectations_on_nil; end
|
674
|
+
def allow_message_expectations_on_nil=(arg0); end
|
675
|
+
def before_verifying_doubles(&block); end
|
676
|
+
def color?; end
|
677
|
+
def initialize; end
|
678
|
+
def patch_marshal_to_support_partial_doubles=(val); end
|
679
|
+
def reset_syntaxes_to_default; end
|
680
|
+
def syntax; end
|
681
|
+
def syntax=(*values); end
|
682
|
+
def temporarily_suppress_partial_double_verification; end
|
683
|
+
def temporarily_suppress_partial_double_verification=(arg0); end
|
684
|
+
def transfer_nested_constants=(arg0); end
|
685
|
+
def transfer_nested_constants?; end
|
686
|
+
def verify_doubled_constant_names=(arg0); end
|
687
|
+
def verify_doubled_constant_names?; end
|
688
|
+
def verify_partial_doubles=(val); end
|
689
|
+
def verify_partial_doubles?; end
|
690
|
+
def verifying_double_callbacks; end
|
691
|
+
def when_declaring_verifying_double(&block); end
|
692
|
+
def yield_receiver_to_any_instance_implementation_blocks=(arg0); end
|
693
|
+
def yield_receiver_to_any_instance_implementation_blocks?; end
|
694
|
+
end
|
695
|
+
class RSpec::Mocks::VerifyingMessageExpectation < RSpec::Mocks::MessageExpectation
|
696
|
+
def initialize(*args); end
|
697
|
+
def method_reference; end
|
698
|
+
def method_reference=(arg0); end
|
699
|
+
def validate_expected_arguments!; end
|
700
|
+
def with(*args, &block); end
|
701
|
+
end
|
702
|
+
class RSpec::Mocks::MethodReference
|
703
|
+
def defined?; end
|
704
|
+
def implemented?; end
|
705
|
+
def initialize(object_reference, method_name); end
|
706
|
+
def original_method; end
|
707
|
+
def self.for(object_reference, method_name); end
|
708
|
+
def self.instance_method_visibility_for(klass, method_name); end
|
709
|
+
def self.method_defined_at_any_visibility?(klass, method_name); end
|
710
|
+
def self.method_visibility_for(object, method_name); end
|
711
|
+
def unimplemented?; end
|
712
|
+
def visibility; end
|
713
|
+
def with_signature; end
|
714
|
+
end
|
715
|
+
class RSpec::Mocks::InstanceMethodReference < RSpec::Mocks::MethodReference
|
716
|
+
def find_method(mod); end
|
717
|
+
def method_defined?(mod); end
|
718
|
+
def method_implemented?(mod); end
|
719
|
+
def visibility_from(mod); end
|
720
|
+
end
|
721
|
+
class RSpec::Mocks::ObjectMethodReference < RSpec::Mocks::MethodReference
|
722
|
+
def find_method(object); end
|
723
|
+
def method_defined?(object); end
|
724
|
+
def method_implemented?(object); end
|
725
|
+
def self.for(object_reference, method_name); end
|
726
|
+
def visibility_from(object); end
|
727
|
+
end
|
728
|
+
class RSpec::Mocks::ClassNewMethodReference < RSpec::Mocks::ObjectMethodReference
|
729
|
+
def self.applies_to?(method_name); end
|
730
|
+
def with_signature; end
|
731
|
+
end
|
732
|
+
class RSpec::Mocks::CallbackInvocationStrategy
|
733
|
+
def call(doubled_module); end
|
734
|
+
end
|
735
|
+
class RSpec::Mocks::NoCallbackInvocationStrategy
|
736
|
+
def call(_doubled_module); end
|
737
|
+
end
|
738
|
+
module RSpec::Mocks::VerifyingProxyMethods
|
739
|
+
def add_message_expectation(method_name, opts = nil, &block); end
|
740
|
+
def add_simple_stub(method_name, *args); end
|
741
|
+
def add_stub(method_name, opts = nil, &implementation); end
|
742
|
+
def ensure_implemented(method_name); end
|
743
|
+
def ensure_publicly_implemented(method_name, _object); end
|
744
|
+
end
|
745
|
+
class RSpec::Mocks::VerifyingProxy < RSpec::Mocks::TestDoubleProxy
|
746
|
+
def initialize(object, order_group, doubled_module, method_reference_class); end
|
747
|
+
def method_reference; end
|
748
|
+
def validate_arguments!(method_name, args); end
|
749
|
+
def visibility_for(method_name); end
|
750
|
+
include RSpec::Mocks::VerifyingProxyMethods
|
751
|
+
end
|
752
|
+
class RSpec::Mocks::VerifyingPartialDoubleProxy < RSpec::Mocks::PartialDoubleProxy
|
753
|
+
def ensure_implemented(_method_name); end
|
754
|
+
def initialize(object, expectation_ordering, optional_callback_invocation_strategy = nil); end
|
755
|
+
def method_reference; end
|
756
|
+
include RSpec::Mocks::VerifyingProxyMethods
|
757
|
+
end
|
758
|
+
class RSpec::Mocks::VerifyingPartialClassDoubleProxy < RSpec::Mocks::VerifyingPartialDoubleProxy
|
759
|
+
include RSpec::Mocks::PartialClassDoubleProxyMethods
|
760
|
+
end
|
761
|
+
class RSpec::Mocks::VerifyingMethodDouble < RSpec::Mocks::MethodDouble
|
762
|
+
def add_expectation(*args, &block); end
|
763
|
+
def add_stub(*args, &block); end
|
764
|
+
def initialize(object, method_name, proxy, method_reference); end
|
765
|
+
def message_expectation_class; end
|
766
|
+
def proxy_method_invoked(obj, *args, &block); end
|
767
|
+
def validate_arguments!(actual_args); end
|
768
|
+
end
|
769
|
+
class RSpec::Mocks::VerifyingExistingMethodDouble < RSpec::Mocks::VerifyingMethodDouble
|
770
|
+
def initialize(object, method_name, proxy); end
|
771
|
+
def self.for(object, method_name, proxy); end
|
772
|
+
def unimplemented?; end
|
773
|
+
def with_signature; end
|
774
|
+
end
|
775
|
+
class RSpec::Mocks::VerifyingExistingClassNewMethodDouble < RSpec::Mocks::VerifyingExistingMethodDouble
|
776
|
+
def with_signature; end
|
777
|
+
end
|
778
|
+
module RSpec::Mocks::VerifyingDouble
|
779
|
+
def __send__(name, *args, &block); end
|
780
|
+
def initialize(doubled_module, *args); end
|
781
|
+
def method_missing(message, *args, &block); end
|
782
|
+
def respond_to?(message, include_private = nil); end
|
783
|
+
def send(name, *args, &block); end
|
784
|
+
end
|
785
|
+
module RSpec::Mocks::VerifyingDouble::SilentIO
|
786
|
+
def self.method_missing(*arg0); end
|
787
|
+
def self.respond_to?(*arg0); end
|
788
|
+
end
|
789
|
+
class RSpec::Mocks::InstanceVerifyingDouble
|
790
|
+
def __build_mock_proxy(order_group); end
|
791
|
+
include RSpec::Mocks::TestDouble
|
792
|
+
include RSpec::Mocks::VerifyingDouble
|
793
|
+
end
|
794
|
+
module RSpec::Mocks::ObjectVerifyingDoubleMethods
|
795
|
+
def __build_mock_proxy(order_group); end
|
796
|
+
def as_stubbed_const(options = nil); end
|
797
|
+
include RSpec::Mocks::TestDouble
|
798
|
+
include RSpec::Mocks::VerifyingDouble
|
799
|
+
end
|
800
|
+
class RSpec::Mocks::ObjectVerifyingDouble
|
801
|
+
include RSpec::Mocks::ObjectVerifyingDoubleMethods
|
802
|
+
end
|
803
|
+
class RSpec::Mocks::ClassVerifyingDouble < Module
|
804
|
+
include RSpec::Mocks::ObjectVerifyingDoubleMethods
|
805
|
+
end
|
806
|
+
module RSpec::Mocks::Version
|
807
|
+
end
|
808
|
+
module RSpec::Support
|
809
|
+
def self.require_rspec_mocks(f); end
|
810
|
+
end
|
811
|
+
module RSpec::Mocks::Matchers
|
812
|
+
end
|
813
|
+
module RSpec::Mocks::Matchers::Matcher
|
814
|
+
end
|
815
|
+
class RSpec::Mocks::MarshalExtension
|
816
|
+
def self.patch!; end
|
817
|
+
def self.unpatch!; end
|
818
|
+
end
|