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.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.github/pull_request_template.md +11 -0
  3. data/Gemfile.lock +32 -3
  4. data/bin/tapioca +29 -0
  5. data/lib/workos/portal.rb +1 -1
  6. data/lib/workos/types/intent_enum.rb +3 -2
  7. data/lib/workos/version.rb +1 -1
  8. data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
  9. data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +27 -22
  10. data/sorbet/rbi/gems/codecov@0.2.12.rbi +55 -0
  11. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  12. data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
  13. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
  14. data/sorbet/rbi/gems/docile@1.3.5.rbi +54 -0
  15. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
  16. data/sorbet/rbi/gems/json@2.5.1.rbi +109 -0
  17. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  18. data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
  19. data/sorbet/rbi/gems/parser@3.0.1.0.rbi +1187 -0
  20. data/sorbet/rbi/gems/pry@0.14.2.rbi +8 -0
  21. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +146 -0
  22. data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
  23. data/sorbet/rbi/gems/{rake.rbi → rake@13.0.3.rbi} +587 -424
  24. data/sorbet/rbi/gems/rbi@0.0.16.rbi +2118 -0
  25. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1117 -0
  26. data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +587 -506
  27. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.9.3.rbi} +2321 -1752
  28. data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.9.4.rbi} +1119 -677
  29. data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.9.1.rbi} +1327 -933
  30. data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +511 -0
  31. data/sorbet/rbi/gems/rspec@3.9.0.rbi +38 -0
  32. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +1881 -0
  33. data/sorbet/rbi/gems/rubocop@0.93.1.rbi +11497 -0
  34. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  35. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  36. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  37. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +8 -0
  38. data/sorbet/rbi/gems/spoom@1.1.15.rbi +1549 -0
  39. data/sorbet/rbi/gems/tapioca@0.7.3.rbi +1718 -0
  40. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  41. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +22 -0
  42. data/sorbet/rbi/gems/unparser@0.6.2.rbi +8 -0
  43. data/sorbet/rbi/gems/{vcr.rbi → vcr@5.0.0.rbi} +528 -401
  44. data/sorbet/rbi/gems/webmock@3.12.2.rbi +662 -0
  45. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +268 -0
  46. data/sorbet/rbi/gems/yard@0.9.26.rbi +4048 -0
  47. data/sorbet/tapioca/config.yml +13 -0
  48. data/sorbet/tapioca/require.rb +4 -0
  49. data/workos.gemspec +1 -1
  50. metadata +61 -50
  51. data/sorbet/rbi/gems/addressable.rbi +0 -199
  52. data/sorbet/rbi/gems/codecov.rbi +0 -37
  53. data/sorbet/rbi/gems/crack.rbi +0 -62
  54. data/sorbet/rbi/gems/docile.rbi +0 -36
  55. data/sorbet/rbi/gems/hashdiff.rbi +0 -66
  56. data/sorbet/rbi/gems/parallel.rbi +0 -83
  57. data/sorbet/rbi/gems/parser.rbi +0 -1429
  58. data/sorbet/rbi/gems/public_suffix.rbi +0 -104
  59. data/sorbet/rbi/gems/regexp_parser.rbi +0 -926
  60. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  61. data/sorbet/rbi/gems/rspec.rbi +0 -15
  62. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1355
  63. data/sorbet/rbi/gems/rubocop.rbi +0 -7253
  64. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -304
  65. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  66. data/sorbet/rbi/gems/simplecov.rbi +0 -406
  67. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
  68. data/sorbet/rbi/gems/webmock.rbi +0 -556
  69. data/sorbet/rbi/gems/yard.rbi +0 -1165
  70. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  71. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +0 -645
  72. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -1891
  73. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
  74. data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +0 -1214
  75. data/sorbet/rbi/todo.rbi +0 -5
@@ -1,601 +1,520 @@
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
- # 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.9.1
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rspec-mocks` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rspec-mocks`.
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
13
33
  end
34
+
35
+ RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
36
+
14
37
  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
38
+ class << self
39
+ def allow_message(subject, message, opts = T.unsafe(nil), &block); end
40
+ def configuration; end
41
+ def error_generator; end
42
+ def expect_message(subject, message, opts = T.unsafe(nil), &block); end
43
+ def setup; end
44
+ def space; end
45
+ def teardown; end
46
+ def verify; end
47
+ def with_temporary_scope; end
48
+ end
35
49
  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
50
+
51
+ class RSpec::Mocks::AllowanceTarget < ::RSpec::Mocks::TargetBase
52
+ def expression; end
53
+ def not_to(matcher, *_args); end
54
+ def to(matcher, &block); end
55
+ def to_not(matcher, *_args); end
72
56
  end
73
- class RSpec::Mocks::MethodDouble::RSpecPrependedModule < Module
57
+
58
+ class RSpec::Mocks::AndReturnImplementation
59
+ def initialize(values_to_return); end
60
+
61
+ def call(*_args_to_ignore, &_block); end
74
62
  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
63
+
64
+ class RSpec::Mocks::AndWrapOriginalImplementation
65
+ def initialize(method, block); end
66
+
67
+ def call(*args, &block); end
68
+ def initial_action=(_value); end
69
+ def inner_action; end
70
+ def inner_action=(_value); end
71
+ def present?; end
72
+ def terminal_action=(_value); end
73
+
74
+ private
75
+
76
+ def cannot_modify_further_error; end
90
77
  end
91
- class RSpec::Mocks::ArgumentMatchers::SingletonMatcher
92
- def self.inherited(subklass); end
93
- def self.new(*arg0); end
78
+
79
+ class RSpec::Mocks::AndWrapOriginalImplementation::CannotModifyFurtherError < ::StandardError; end
80
+
81
+ class RSpec::Mocks::AndYieldImplementation
82
+ def initialize(args_to_yield, eval_context, error_generator); end
83
+
84
+ def call(*_args_to_ignore, &block); end
94
85
  end
95
- class RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
96
- def description; end
86
+
87
+ module RSpec::Mocks::AnyInstance
88
+ class << self
89
+ def error_generator; end
90
+ end
97
91
  end
98
- class RSpec::Mocks::ArgumentMatchers::AnyArgMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
99
- def ===(_other); end
100
- def description; end
92
+
93
+ class RSpec::Mocks::AnyInstance::Chain
94
+ include ::RSpec::Mocks::AnyInstance::Chain::Customizations
95
+
96
+ def initialize(recorder, *args, &block); end
97
+
98
+ def constrained_to_any_of?(*constraints); end
99
+ def expectation_fulfilled!; end
100
+ def matches_args?(*args); end
101
+ def never; end
102
+ def playback!(instance); end
103
+ def with(*args, &block); end
104
+
105
+ private
106
+
107
+ def last_message; end
108
+ def messages; end
109
+ def negated?; end
110
+ def record(rspec_method_name, *args, &block); end
101
111
  end
102
- class RSpec::Mocks::ArgumentMatchers::NoArgsMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
103
- def description; end
112
+
113
+ module RSpec::Mocks::AnyInstance::Chain::Customizations
114
+ def and_call_original(*args, &block); end
115
+ def and_raise(*args, &block); end
116
+ def and_return(*args, &block); end
117
+ def and_throw(*args, &block); end
118
+ def and_wrap_original(*args, &block); end
119
+ def and_yield(*args, &block); end
120
+ def at_least(*args, &block); end
121
+ def at_most(*args, &block); end
122
+ def exactly(*args, &block); end
123
+ def never(*args, &block); end
124
+ def once(*args, &block); end
125
+ def thrice(*args, &block); end
126
+ def time(*args, &block); end
127
+ def times(*args, &block); end
128
+ def twice(*args, &block); end
129
+ def with(*args, &block); end
130
+
131
+ class << self
132
+ def record(method_name); end
133
+ end
104
134
  end
105
- class RSpec::Mocks::ArgumentMatchers::BooleanMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
106
- def ===(value); end
107
- def description; end
135
+
136
+ class RSpec::Mocks::AnyInstance::ErrorGenerator < ::RSpec::Mocks::ErrorGenerator
137
+ def raise_does_not_implement_error(klass, method_name); end
138
+ def raise_message_already_received_by_other_instance_error(method_name, object_inspect, invoked_instance); end
139
+ def raise_not_supported_with_prepend_error(method_name, problem_mod); end
140
+ def raise_second_instance_received_message_error(unfulfilled_expectations); end
108
141
  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
142
+
143
+ class RSpec::Mocks::AnyInstance::ExpectChainChain < ::RSpec::Mocks::AnyInstance::StubChain
144
+ def initialize(*args); end
145
+
146
+ def expectation_fulfilled?; end
147
+ def playback!(instance); end
148
+
149
+ private
150
+
151
+ def create_message_expectation_on(instance); end
152
+ def invocation_order; end
114
153
  end
115
- class RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher < RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
116
- def ===(actual); end
117
- def description; end
154
+
155
+ class RSpec::Mocks::AnyInstance::ExpectationChain < ::RSpec::Mocks::AnyInstance::Chain
156
+ def initialize(*args, &block); end
157
+
158
+ def expectation_fulfilled?; end
159
+
160
+ private
161
+
162
+ def verify_invocation_order(_rspec_method_name, *_args, &_block); end
118
163
  end
119
- class RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher < RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
120
- def ===(actual); end
121
- def description; end
164
+
165
+ class RSpec::Mocks::AnyInstance::FluentInterfaceProxy
166
+ def initialize(targets); end
167
+
168
+ def method_missing(*args, &block); end
169
+
170
+ private
171
+
172
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
122
173
  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
174
+
175
+ class RSpec::Mocks::AnyInstance::MessageChains
176
+ def initialize; end
177
+
178
+ def [](method_name); end
179
+ def add(method_name, chain); end
180
+ def all_expectations_fulfilled?; end
181
+ def each_unfulfilled_expectation_matching(method_name, *args); end
182
+ def has_expectation?(method_name); end
183
+ def playback!(instance, method_name); end
184
+ def received_expected_message!(method_name); end
185
+ def remove_stub_chains_for!(method_name); end
186
+ def unfulfilled_expectations; end
187
+
188
+ private
189
+
190
+ def raise_if_second_instance_to_receive_message(instance); end
128
191
  end
129
- class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher
130
- def ===(value); end
131
- def description; end
132
- def initialize(*methods_to_respond_to); end
192
+
193
+ class RSpec::Mocks::AnyInstance::PositiveExpectationChain < ::RSpec::Mocks::AnyInstance::ExpectationChain
194
+ private
195
+
196
+ def create_message_expectation_on(instance); end
197
+ def invocation_order; end
133
198
  end
134
- class RSpec::Mocks::ArgumentMatchers::InstanceOf
135
- def ===(actual); end
136
- def description; end
137
- def initialize(klass); end
199
+
200
+ RSpec::Mocks::AnyInstance::PositiveExpectationChain::ExpectationInvocationOrder = T.let(T.unsafe(nil), Hash)
201
+
202
+ class RSpec::Mocks::AnyInstance::Proxy
203
+ def initialize(recorder, target_proxies); end
204
+
205
+ def expect_chain(*chain, &block); end
206
+ def klass; end
207
+ def should_not_receive(method_name, &block); end
208
+ def should_receive(method_name, &block); end
209
+ def stub(method_name_or_method_map, &block); end
210
+ def stub_chain(*chain, &block); end
211
+ def unstub(method_name); end
212
+
213
+ private
214
+
215
+ def perform_proxying(method_name, args, block, &target_proxy_block); end
138
216
  end
139
- class RSpec::Mocks::ArgumentMatchers::KindOf
140
- def ===(actual); end
141
- def description; end
217
+
218
+ class RSpec::Mocks::AnyInstance::Recorder
142
219
  def initialize(klass); end
220
+
221
+ def already_observing?(method_name); end
222
+ def build_alias_method_name(method_name); end
223
+ def expect_chain(*method_names_and_optional_return_values, &block); end
224
+ def instance_that_received(method_name); end
225
+ def klass; end
226
+ def message_chains; end
227
+ def notify_received_message(_object, message, args, _blk); end
228
+ def playback!(instance, method_name); end
229
+ def should_not_receive(method_name, &block); end
230
+ def should_receive(method_name, &block); end
231
+ def stop_all_observation!; end
232
+ def stub(method_name, &block); end
233
+ def stub_chain(*method_names_and_optional_return_values, &block); end
234
+ def stubs; end
235
+ def unstub(method_name); end
236
+ def verify; end
237
+
238
+ protected
239
+
240
+ def stop_observing!(method_name); end
241
+
242
+ private
243
+
244
+ def allow_no_prepended_module_definition_of(method_name); end
245
+ def ancestor_is_an_observer?(method_name); end
246
+ def backup_method!(method_name); end
247
+ def mark_invoked!(method_name); end
248
+ def normalize_chain(*args); end
249
+ def observe!(method_name); end
250
+ def public_protected_or_private_method_defined?(method_name); end
251
+ def received_expected_message!(method_name); end
252
+ def remove_dummy_method!(method_name); end
253
+ def restore_method!(method_name); end
254
+ def restore_original_method!(method_name); end
255
+ def super_class_observers_for(method_name); end
256
+ def super_class_observing?(method_name); end
143
257
  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
258
+
259
+ class RSpec::Mocks::AnyInstance::StubChain < ::RSpec::Mocks::AnyInstance::Chain
260
+ def expectation_fulfilled?; end
261
+
262
+ private
263
+
264
+ def create_message_expectation_on(instance); end
265
+ def invocation_order; end
266
+ def verify_invocation_order(rspec_method_name, *_args, &_block); end
194
267
  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_implemented(*_args); end
204
- def find_almost_matching_expectation(method_name, *args); end
205
- def find_almost_matching_stub(method_name, *args); end
206
- def find_best_matching_expectation_for(method_name); end
207
- def find_matching_expectation(method_name, *args); end
208
- def find_matching_method_stub(method_name, *args); end
209
- def has_negative_expectation?(message); end
210
- def initialize(object, order_group, options = nil); end
211
- def message_received(message, *args, &block); end
212
- def messages_arg_list; end
213
- def method_double_for(message); end
214
- def method_double_if_exists_for_message(message); end
215
- def null_object?; end
216
- def object; end
217
- def original_method_handle_for(_message); end
218
- def prepended_modules_of_singleton_class; end
219
- def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
220
- def raise_unexpected_message_error(method_name, args); end
221
- def received_message?(method_name, *args, &block); end
222
- def record_message_received(message, *args, &block); end
223
- def remove_stub(method_name); end
224
- def remove_stub_if_present(method_name); end
225
- def replay_received_message_on(expectation, &block); end
226
- def reset; end
227
- def self.prepended_modules_of(klass); end
228
- def verify; end
229
- def visibility_for(_method_name); end
268
+
269
+ RSpec::Mocks::AnyInstance::StubChain::EmptyInvocationOrder = T.let(T.unsafe(nil), Hash)
270
+ RSpec::Mocks::AnyInstance::StubChain::InvocationOrder = T.let(T.unsafe(nil), Hash)
271
+
272
+ class RSpec::Mocks::AnyInstance::StubChainChain < ::RSpec::Mocks::AnyInstance::StubChain
273
+ def initialize(*args); end
274
+
275
+ private
276
+
277
+ def create_message_expectation_on(instance); end
278
+ def invocation_order; end
230
279
  end
231
- class RSpec::Mocks::Proxy::SpecificMessage < Struct
232
- def ==(expectation); end
233
- def args; end
234
- def args=(_); end
235
- def message; end
236
- def message=(_); end
237
- def object; end
238
- def object=(_); end
239
- def self.[](*arg0); end
240
- def self.inspect; end
241
- def self.members; end
242
- def self.new(*arg0); end
280
+
281
+ class RSpec::Mocks::AnyInstanceAllowanceTarget < ::RSpec::Mocks::TargetBase
282
+ def expression; end
283
+ def not_to(matcher, *_args); end
284
+ def to(matcher, &block); end
285
+ def to_not(matcher, *_args); end
243
286
  end
244
- class RSpec::Mocks::TestDoubleProxy < RSpec::Mocks::Proxy
245
- def reset; end
287
+
288
+ class RSpec::Mocks::AnyInstanceExpectationTarget < ::RSpec::Mocks::TargetBase
289
+ def expression; end
290
+ def not_to(matcher, &block); end
291
+ def to(matcher, &block); end
292
+ def to_not(matcher, &block); end
246
293
  end
247
- class RSpec::Mocks::PartialDoubleProxy < RSpec::Mocks::Proxy
248
- def add_simple_expectation(method_name, response, location); end
249
- def add_simple_stub(method_name, response); end
250
- def any_instance_class_recorder_observing_method?(klass, method_name); end
251
- def message_received(message, *args, &block); end
252
- def original_method_handle_for(message); end
253
- def reset; end
254
- def visibility_for(method_name); end
294
+
295
+ class RSpec::Mocks::ArgumentListMatcher
296
+ def initialize(*expected_args); end
297
+
298
+ def args_match?(*args); end
299
+ def expected_args; end
300
+ def resolve_expected_args_based_on(actual_args); end
301
+
302
+ private
303
+
304
+ def ensure_expected_args_valid!; end
305
+ def replace_any_args_with_splat_of_anything(before_count, actual_args_count); end
255
306
  end
256
- module RSpec::Mocks::PartialClassDoubleProxyMethods
257
- def initialize(source_space, *args); end
258
- def method_double_from_ancestor_for(message); end
259
- def original_method_handle_for(message); end
260
- def original_unbound_method_handle_from_ancestor_for(message); end
261
- def superclass_proxy; end
307
+
308
+ RSpec::Mocks::ArgumentListMatcher::MATCH_ALL = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentListMatcher)
309
+
310
+ module RSpec::Mocks::ArgumentMatchers
311
+ def a_kind_of(klass); end
312
+ def an_instance_of(klass); end
313
+ def any_args; end
314
+ def anything; end
315
+ def array_including(*args); end
316
+ def boolean; end
317
+ def duck_type(*args); end
318
+ def hash_excluding(*args); end
319
+ def hash_including(*args); end
320
+ def hash_not_including(*args); end
321
+ def instance_of(klass); end
322
+ def kind_of(klass); end
323
+ def no_args; end
324
+
325
+ class << self
326
+ def anythingize_lonely_keys(*args); end
327
+ end
262
328
  end
263
- class RSpec::Mocks::PartialClassDoubleProxy < RSpec::Mocks::PartialDoubleProxy
264
- include RSpec::Mocks::PartialClassDoubleProxyMethods
329
+
330
+ class RSpec::Mocks::ArgumentMatchers::AnyArgMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
331
+ def ===(_other); end
332
+ def description; end
265
333
  end
266
- class RSpec::Mocks::ProxyForNil < RSpec::Mocks::PartialDoubleProxy
267
- def add_message_expectation(method_name, opts = nil, &block); end
268
- def add_stub(method_name, opts = nil, &implementation); end
269
- def disallow_expectations; end
270
- def disallow_expectations=(arg0); end
271
- def initialize(order_group); end
272
- def raise_error(method_name); end
273
- def set_expectation_behavior; end
274
- def warn(method_name); end
275
- def warn_about_expectations; end
276
- def warn_about_expectations=(arg0); end
277
- def warn_or_raise!(method_name); end
334
+
335
+ RSpec::Mocks::ArgumentMatchers::AnyArgMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::AnyArgMatcher)
336
+
337
+ class RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
338
+ def description; end
278
339
  end
279
- module RSpec::Mocks::TestDouble
280
- def ==(other); end
281
- def __build_mock_proxy(order_group); end
282
- def __build_mock_proxy_unless_expired(order_group); end
283
- def __disallow_further_usage!; end
284
- def __mock_proxy; end
285
- def __raise_expired_error; end
286
- def as_null_object; end
287
- def assign_stubs(stubs); end
288
- def freeze; end
289
- def initialize(name = nil, stubs = nil); end
290
- def initialize_copy(other); end
291
- def inspect; end
292
- def method_missing(message, *args, &block); end
293
- def null_object?; end
294
- def respond_to?(message, incl_private = nil); end
295
- def to_s; end
340
+
341
+ RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher)
342
+
343
+ class RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher
344
+ def initialize(expected); end
345
+
346
+ def ===(actual); end
347
+ def description; end
348
+
349
+ private
350
+
351
+ def formatted_expected_values; end
296
352
  end
297
- class RSpec::Mocks::Double
298
- include RSpec::Mocks::TestDouble
353
+
354
+ class RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
355
+ def initialize(expected); end
356
+
357
+ def ===(predicate, actual); end
358
+ def description(name); end
359
+
360
+ private
361
+
362
+ def formatted_expected_hash; end
299
363
  end
300
- module RSpec::Mocks::TestDoubleFormatter
301
- def self.format(dbl, unwrap = nil); end
302
- def self.name_desc(dbl); end
303
- def self.type_desc(dbl); end
304
- def self.verified_module_desc(dbl); end
364
+
365
+ class RSpec::Mocks::ArgumentMatchers::BooleanMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
366
+ def ===(value); end
367
+ def description; end
305
368
  end
306
- class RSpec::Mocks::ArgumentListMatcher
307
- def args_match?(*args); end
308
- def ensure_expected_args_valid!; end
309
- def expected_args; end
310
- def initialize(*expected_args); end
311
- def replace_any_args_with_splat_of_anything(before_count, actual_args_count); end
312
- def resolve_expected_args_based_on(actual_args); end
369
+
370
+ RSpec::Mocks::ArgumentMatchers::BooleanMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::BooleanMatcher)
371
+
372
+ class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher
373
+ def initialize(*methods_to_respond_to); end
374
+
375
+ def ===(value); end
376
+ def description; end
313
377
  end
314
- class RSpec::Mocks::SimpleMessageExpectation
315
- def called_max_times?; end
316
- def initialize(message, response, error_generator, backtrace_line = nil); end
317
- def invoke(*_); end
318
- def matches?(message, *_); end
319
- def unadvise(_); end
320
- def verify_messages_received; end
378
+
379
+ class RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher < ::RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
380
+ def ===(actual); end
381
+ def description; end
321
382
  end
322
- class RSpec::Mocks::MessageExpectation
323
- def and_call_original; end
324
- def and_raise(*args); end
325
- def and_return(first_value, *values); end
326
- def and_throw(*args); end
327
- def and_wrap_original(&block); end
328
- def and_yield(*args, &block); end
329
- def at_least(n, &block); end
330
- def at_most(n, &block); end
331
- def exactly(n, &block); end
332
- def inspect; end
333
- def never; end
334
- def once(&block); end
335
- def ordered(&block); end
336
- def thrice(&block); end
337
- def time(&block); end
338
- def times(&block); end
339
- def to_s; end
340
- def twice(&block); end
341
- def with(*args, &block); end
342
- include RSpec::Mocks::MessageExpectation::ImplementationDetails
383
+
384
+ class RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher < ::RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
385
+ def ===(actual); end
386
+ def description; end
343
387
  end
344
- module RSpec::Mocks::MessageExpectation::ImplementationDetails
345
- def actual_received_count_matters?; end
346
- def additional_expected_calls; end
347
- def advise(*args); end
348
- def and_yield_receiver_to_implementation; end
349
- def argument_list_matcher=(arg0); end
350
- def called_max_times?; end
351
- def description_for(verb); end
352
- def ensure_expected_ordering_received!; end
353
- def error_generator; end
354
- def error_generator=(arg0); end
355
- def exception_source_id; end
356
- def expectation_count_type; end
357
- def expected_args; end
358
- def expected_from=(arg0); end
359
- def expected_messages_received?; end
360
- def expected_received_count=(arg0); end
361
- def generate_error; end
362
- def has_been_invoked?; end
363
- def ignoring_args?; end
364
- def implementation; end
365
- def implementation=(arg0); end
366
- def increase_actual_received_count!; end
367
- def initial_implementation_action=(action); end
368
- def initialize(error_generator, expectation_ordering, expected_from, method_double, type = nil, opts = nil, &implementation_block); end
369
- def inner_implementation_action=(action); end
370
- def invoke(parent_stub, *args, &block); end
371
- def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, &block); end
372
- def invoke_without_incrementing_received_count(parent_stub, *args, &block); end
373
- def matches?(message, *args); end
374
- def matches_at_least_count?; end
375
- def matches_at_most_count?; end
376
- def matches_exact_count?; end
377
- def matches_name_but_not_args(message, *args); end
378
- def message; end
379
- def negative?; end
380
- def negative_expectation_for?(message); end
381
- def ordered?; end
382
- def orig_object; end
383
- def raise_already_invoked_error_if_necessary(calling_customization); end
384
- def raise_out_of_order_error; end
385
- def raise_unexpected_message_args_error(args_for_multiple_calls); end
386
- def safe_invoke(parent_stub, *args, &block); end
387
- def set_expected_received_count(relativity, n); end
388
- def similar_messages; end
389
- def terminal_implementation_action=(action); end
390
- def type; end
391
- def unadvise(args); end
392
- def verify_messages_received; end
393
- def warn_about_stub_override; end
394
- def wrap_original(method_name, &block); end
395
- def yield_receiver_to_implementation_block?; end
396
- end
397
- class RSpec::Mocks::AndYieldImplementation
398
- def call(*_args_to_ignore, &block); end
399
- def initialize(args_to_yield, eval_context, error_generator); end
400
- end
401
- class RSpec::Mocks::AndReturnImplementation
402
- def call(*_args_to_ignore, &_block); end
403
- def initialize(values_to_return); end
404
- end
405
- class RSpec::Mocks::Implementation
406
- def actions; end
407
- def call(*args, &block); end
408
- def initial_action; end
409
- def initial_action=(arg0); end
410
- def inner_action; end
411
- def inner_action=(arg0); end
412
- def present?; end
413
- def terminal_action; end
414
- def terminal_action=(arg0); end
415
- end
416
- class RSpec::Mocks::AndWrapOriginalImplementation
417
- def call(*args, &block); end
418
- def cannot_modify_further_error; end
419
- def initial_action=(_value); end
420
- def initialize(method, block); end
421
- def inner_action; end
422
- def inner_action=(_value); end
423
- def present?; end
424
- def terminal_action=(_value); end
425
- end
426
- class RSpec::Mocks::AndWrapOriginalImplementation::CannotModifyFurtherError < StandardError
427
- end
428
- class RSpec::Mocks::OrderGroup
429
- def clear; end
430
- def consume; end
431
- def empty?; end
432
- def expectation_for(message); end
433
- def expectations_invoked_in_order?; end
434
- def expected_invocations; end
435
- def handle_order_constraint(expectation); end
436
- def initialize; end
437
- def invoked(message); end
438
- def invoked_expectations; end
439
- def ready_for?(expectation); end
440
- def register(expectation); end
441
- def remaining_expectations; end
442
- def verify_invocation_order(expectation); end
443
- end
444
- class RSpec::Mocks::MockExpectationError < Exception
445
- end
446
- class RSpec::Mocks::ExpiredTestDoubleError < RSpec::Mocks::MockExpectationError
447
- end
448
- class RSpec::Mocks::OutsideOfExampleError < StandardError
449
- end
450
- class RSpec::Mocks::MockExpectationAlreadyInvokedError < Exception
388
+
389
+ class RSpec::Mocks::ArgumentMatchers::InstanceOf
390
+ def initialize(klass); end
391
+
392
+ def ===(actual); end
393
+ def description; end
451
394
  end
452
- class RSpec::Mocks::CannotSupportArgMutationsError < StandardError
395
+
396
+ class RSpec::Mocks::ArgumentMatchers::KindOf
397
+ def initialize(klass); end
398
+
399
+ def ===(actual); end
400
+ def description; end
453
401
  end
454
- class RSpec::Mocks::UnsupportedMatcherError < StandardError
402
+
403
+ class RSpec::Mocks::ArgumentMatchers::NoArgsMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
404
+ def description; end
455
405
  end
456
- class RSpec::Mocks::NegationUnsupportedError < StandardError
406
+
407
+ RSpec::Mocks::ArgumentMatchers::NoArgsMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::NoArgsMatcher)
408
+
409
+ class RSpec::Mocks::ArgumentMatchers::SingletonMatcher
410
+ class << self
411
+ def inherited(subklass); end
412
+ end
457
413
  end
458
- class RSpec::Mocks::VerifyingDoubleNotDefinedError < StandardError
414
+
415
+ class RSpec::Mocks::CallbackInvocationStrategy
416
+ def call(doubled_module); end
459
417
  end
460
- class RSpec::Mocks::ErrorGenerator
461
- def __raise(message, backtrace_line = nil, source_id = nil); end
462
- def arg_list(args); end
463
- def count_message(count, expectation_count_type = nil); end
464
- def default_error_message(expectation, expected_args, actual_args); end
465
- def describe_expectation(verb, message, expected_received_count, _actual_received_count, args); end
466
- def diff_message(expected_args, actual_args); end
467
- def differ; end
468
- def error_message(expectation, args_for_multiple_calls); end
469
- def expectation_on_nil_message(method_name); end
470
- def expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher); end
471
- def format_args(args); end
472
- def format_received_args(args_for_multiple_calls); end
473
- def group_count(index, args); end
474
- def grouped_args(args); end
475
- def initialize(target = nil); end
476
- def intro(unwrapped = nil); end
477
- def list_of_exactly_one_string?(args); end
478
- def method_call_args_description(args, generic_prefix = nil, matcher_prefix = nil); end
479
- def notify(*args); end
480
- def opts; end
481
- def opts=(arg0); end
482
- def prepend_to_backtrace(exception, line); end
483
- def raise_already_invoked_error(message, calling_customization); end
484
- def raise_cant_constrain_count_for_negated_have_received_error(count_constraint); end
485
- def raise_double_negation_error(wrapped_expression); end
486
- 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
487
- def raise_expectation_on_mocked_method(method); end
488
- def raise_expectation_on_nil_error(method_name); end
489
- def raise_expectation_on_unstubbed_method(method); end
490
- def raise_expired_test_double_error; end
491
- def raise_have_received_disallowed(type, reason); end
492
- def raise_invalid_arguments_error(verifier); end
493
- def raise_method_not_stubbed_error(method_name); end
494
- def raise_missing_block_error(args_to_yield); end
495
- def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
496
- def raise_non_public_error(method_name, visibility); end
497
- def raise_only_valid_on_a_partial_double(method); end
498
- def raise_out_of_order_error(message); end
499
- def raise_similar_message_args_error(expectation, args_for_multiple_calls, backtrace_line = nil); end
500
- def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id = nil); end
501
- def raise_unexpected_message_error(message, args); end
502
- def raise_unimplemented_error(doubled_module, method_name, object); end
503
- def raise_verifying_double_not_defined_error(ref); end
504
- def raise_wrong_arity_error(args_to_yield, signature); end
505
- def received_part_of_expectation_error(actual_received_count, args); end
506
- def times(count); end
507
- def unexpected_arguments_message(expected_args_string, actual_args_string); end
508
- def unpack_string_args(formatted_expected_args, actual_args); end
418
+
419
+ class RSpec::Mocks::CannotSupportArgMutationsError < ::StandardError; end
420
+
421
+ class RSpec::Mocks::ClassNewMethodReference < ::RSpec::Mocks::ObjectMethodReference
422
+ def with_signature; end
423
+
424
+ class << self
425
+ def applies_to?(method_name); end
426
+ end
509
427
  end
510
- class RSpec::Mocks::RootSpace
511
- def any_instance_proxy_for(*_args); end
512
- def any_instance_recorder_for(*_args); end
513
- def any_instance_recorders_from_ancestry_of(_object); end
514
- def new_scope; end
515
- def proxy_for(*_args); end
516
- def raise_lifecycle_message; end
517
- def register_constant_mutator(_mutator); end
518
- def registered?(_object); end
519
- def reset_all; end
520
- def superclass_proxy_for(*_args); end
521
- def verify_all; end
428
+
429
+ class RSpec::Mocks::ClassVerifyingDouble < ::Module
430
+ include ::RSpec::Mocks::TestDouble
431
+ include ::RSpec::Mocks::VerifyingDouble
432
+ include ::RSpec::Mocks::ObjectVerifyingDoubleMethods
522
433
  end
523
- class RSpec::Mocks::Space
524
- def any_instance_mutex; end
525
- def any_instance_proxy_for(klass); end
526
- def any_instance_recorder_for(klass, only_return_existing = nil); end
527
- def any_instance_recorder_not_found_for(id, klass); end
528
- def any_instance_recorders; end
529
- def any_instance_recorders_from_ancestry_of(object); end
530
- def class_proxy_with_callback_verification_strategy(object, strategy); end
531
- def constant_mutator_for(name); end
532
- def ensure_registered(object); end
533
- def id_for(object); end
434
+
435
+ class RSpec::Mocks::Configuration
534
436
  def initialize; end
535
- def new_mutex; end
536
- def new_scope; end
537
- def proxies; end
538
- def proxies_of(klass); end
539
- def proxy_for(object); end
540
- def proxy_mutex; end
541
- def proxy_not_found_for(id, object); end
542
- def register_constant_mutator(mutator); end
543
- def registered?(object); end
544
- def reset_all; end
545
- def superclass_proxy_for(klass); end
546
- def superclass_proxy_not_found_for(id, object); end
547
- def verify_all; end
548
- end
549
- class RSpec::Mocks::NestedSpace < RSpec::Mocks::Space
550
- def any_instance_recorder_not_found_for(id, klass); end
551
- def constant_mutator_for(name); end
552
- def initialize(parent); end
553
- def proxies_of(klass); end
554
- def proxy_not_found_for(id, object); end
555
- def registered?(object); end
437
+
438
+ def add_stub_and_should_receive_to(*modules); end
439
+ def allow_message_expectations_on_nil; end
440
+ def allow_message_expectations_on_nil=(_arg0); end
441
+ def before_verifying_doubles(&block); end
442
+ def color?; end
443
+ def patch_marshal_to_support_partial_doubles=(val); end
444
+ def reset_syntaxes_to_default; end
445
+ def syntax; end
446
+ def syntax=(*values); end
447
+ def temporarily_suppress_partial_double_verification; end
448
+ def temporarily_suppress_partial_double_verification=(_arg0); end
449
+ def transfer_nested_constants=(_arg0); end
450
+ def transfer_nested_constants?; end
451
+ def verify_doubled_constant_names=(_arg0); end
452
+ def verify_doubled_constant_names?; end
453
+ def verify_partial_doubles=(val); end
454
+ def verify_partial_doubles?; end
455
+ def verifying_double_callbacks; end
456
+ def when_declaring_verifying_double(&block); end
457
+ def yield_receiver_to_any_instance_implementation_blocks=(_arg0); end
458
+ def yield_receiver_to_any_instance_implementation_blocks?; end
556
459
  end
460
+
557
461
  class RSpec::Mocks::Constant
558
- def hidden=(arg0); end
559
- def hidden?; end
462
+ extend ::RSpec::Support::RecursiveConstMethods
463
+
560
464
  def initialize(name); end
465
+
466
+ def hidden=(_arg0); end
467
+ def hidden?; end
561
468
  def inspect; end
562
469
  def mutated?; end
563
470
  def name; end
564
471
  def original_value; end
565
- def original_value=(arg0); end
566
- def previously_defined=(arg0); end
472
+ def original_value=(_arg0); end
473
+ def previously_defined=(_arg0); end
567
474
  def previously_defined?; end
568
- def self.original(name); end
569
- def self.unmutated(name); end
570
- def stubbed=(arg0); end
475
+ def stubbed=(_arg0); end
571
476
  def stubbed?; end
572
477
  def to_s; end
573
- def valid_name=(arg0); end
478
+ def valid_name=(_arg0); end
574
479
  def valid_name?; end
575
- extend RSpec::Support::RecursiveConstMethods
480
+
481
+ class << self
482
+ def original(name); end
483
+ def unmutated(name); end
484
+ end
576
485
  end
486
+
577
487
  class RSpec::Mocks::ConstantMutator
578
- def self.hide(constant_name); end
579
- def self.mutate(mutator); end
580
- def self.raise_on_invalid_const; end
581
- def self.stub(constant_name, value, options = nil); end
582
- extend RSpec::Support::RecursiveConstMethods
488
+ extend ::RSpec::Support::RecursiveConstMethods
489
+
490
+ class << self
491
+ def hide(constant_name); end
492
+ def mutate(mutator); end
493
+ def raise_on_invalid_const; end
494
+ def stub(constant_name, value, options = T.unsafe(nil)); end
495
+ end
583
496
  end
497
+
584
498
  class RSpec::Mocks::ConstantMutator::BaseMutator
499
+ include ::RSpec::Support::RecursiveConstMethods
500
+
501
+ def initialize(full_constant_name, mutated_value, transfer_nested_constants); end
502
+
585
503
  def full_constant_name; end
586
504
  def idempotently_reset; end
587
- def initialize(full_constant_name, mutated_value, transfer_nested_constants); end
588
505
  def original_value; end
589
506
  def to_constant; end
590
- include RSpec::Support::RecursiveConstMethods
591
507
  end
592
- class RSpec::Mocks::ConstantMutator::ConstantHider < RSpec::Mocks::ConstantMutator::BaseMutator
508
+
509
+ class RSpec::Mocks::ConstantMutator::ConstantHider < ::RSpec::Mocks::ConstantMutator::BaseMutator
593
510
  def mutate; end
594
511
  def reset; end
595
512
  def to_constant; end
596
513
  end
597
- class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < RSpec::Mocks::ConstantMutator::BaseMutator
514
+
515
+ class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < ::RSpec::Mocks::ConstantMutator::BaseMutator
598
516
  def initialize(*args); end
517
+
599
518
  def mutate; end
600
519
  def reset; end
601
520
  def should_transfer_nested_constants?; end
@@ -603,422 +522,266 @@ class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < RSpec::Mocks::Con
603
522
  def transfer_nested_constants; end
604
523
  def verify_constants_to_transfer!; end
605
524
  end
606
- class RSpec::Mocks::ConstantMutator::UndefinedConstantSetter < RSpec::Mocks::ConstantMutator::BaseMutator
525
+
526
+ class RSpec::Mocks::ConstantMutator::UndefinedConstantSetter < ::RSpec::Mocks::ConstantMutator::BaseMutator
607
527
  def mutate; end
608
- def name_for(parent, name); end
609
528
  def reset; end
610
529
  def to_constant; end
530
+
531
+ private
532
+
533
+ def name_for(parent, name); end
611
534
  end
612
- module RSpec::Mocks::TargetDelegationClassMethods
613
- def delegate_not_to(matcher_method, options = nil); end
614
- def delegate_to(matcher_method); end
615
- def disallow_negation(method_name); end
616
- end
617
- module RSpec::Mocks::TargetDelegationInstanceMethods
618
- def define_matcher(matcher, name, &block); end
619
- def matcher_allowed?(matcher); end
620
- def raise_negation_unsupported(method_name, matcher); end
621
- def raise_unsupported_matcher(method_name, matcher); end
535
+
536
+ RSpec::Mocks::DEFAULT_CALLBACK_INVOCATION_STRATEGY = T.let(T.unsafe(nil), RSpec::Mocks::CallbackInvocationStrategy)
537
+
538
+ class RSpec::Mocks::DirectObjectReference
539
+ def initialize(object); end
540
+
541
+ def const_to_replace; end
542
+ def defined?; end
543
+ def description; end
622
544
  def target; end
545
+ def when_loaded; end
623
546
  end
624
- class RSpec::Mocks::TargetBase
625
- def initialize(target); end
626
- extend RSpec::Mocks::TargetDelegationClassMethods
627
- include RSpec::Mocks::TargetDelegationInstanceMethods
547
+
548
+ class RSpec::Mocks::Double
549
+ include ::RSpec::Mocks::TestDouble
628
550
  end
629
- module RSpec::Mocks::ExpectationTargetMethods
630
- def expression; end
631
- def not_to(matcher, &block); end
632
- def to(matcher, &block); end
633
- def to_not(matcher, &block); end
634
- extend RSpec::Mocks::TargetDelegationClassMethods
635
- include RSpec::Mocks::TargetDelegationInstanceMethods
551
+
552
+ class RSpec::Mocks::ErrorGenerator
553
+ def initialize(target = T.unsafe(nil)); end
554
+
555
+ def default_error_message(expectation, expected_args, actual_args); end
556
+ def describe_expectation(verb, message, expected_received_count, _actual_received_count, args); end
557
+ def expectation_on_nil_message(method_name); end
558
+ def intro(unwrapped = T.unsafe(nil)); end
559
+ def method_call_args_description(args, generic_prefix = T.unsafe(nil), matcher_prefix = T.unsafe(nil)); end
560
+ def opts; end
561
+ def opts=(_arg0); end
562
+ def raise_already_invoked_error(message, calling_customization); end
563
+ def raise_cant_constrain_count_for_negated_have_received_error(count_constraint); end
564
+ def raise_double_negation_error(wrapped_expression); end
565
+ def raise_expectation_error(message, expected_received_count, argument_list_matcher, actual_received_count, expectation_count_type, args, backtrace_line = T.unsafe(nil), source_id = T.unsafe(nil)); end
566
+ def raise_expectation_on_mocked_method(method); end
567
+ def raise_expectation_on_nil_error(method_name); end
568
+ def raise_expectation_on_unstubbed_method(method); end
569
+ def raise_expired_test_double_error; end
570
+ def raise_have_received_disallowed(type, reason); end
571
+ def raise_invalid_arguments_error(verifier); end
572
+ def raise_method_not_stubbed_error(method_name); end
573
+ def raise_missing_block_error(args_to_yield); end
574
+ def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
575
+ def raise_non_public_error(method_name, visibility); end
576
+ def raise_only_valid_on_a_partial_double(method); end
577
+ def raise_out_of_order_error(message); end
578
+ def raise_similar_message_args_error(expectation, args_for_multiple_calls, backtrace_line = T.unsafe(nil)); end
579
+ def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id = T.unsafe(nil)); end
580
+ def raise_unexpected_message_error(message, args); end
581
+ def raise_unimplemented_error(doubled_module, method_name, object); end
582
+ def raise_verifying_double_not_defined_error(ref); end
583
+ def raise_wrong_arity_error(args_to_yield, signature); end
584
+
585
+ private
586
+
587
+ def __raise(message, backtrace_line = T.unsafe(nil), source_id = T.unsafe(nil)); end
588
+ def arg_list(args); end
589
+ def count_message(count, expectation_count_type = T.unsafe(nil)); end
590
+ def diff_message(expected_args, actual_args); end
591
+ def differ; end
592
+ def error_message(expectation, args_for_multiple_calls); end
593
+ def expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher); end
594
+ def format_args(args); end
595
+ def format_received_args(args_for_multiple_calls); end
596
+ def group_count(index, args); end
597
+ def grouped_args(args); end
598
+ def list_of_exactly_one_string?(args); end
599
+ def notify(*args); end
600
+ def prepend_to_backtrace(exception, line); end
601
+ def received_part_of_expectation_error(actual_received_count, args); end
602
+ def times(count); end
603
+ def unexpected_arguments_message(expected_args_string, actual_args_string); end
604
+ def unpack_string_args(formatted_expected_args, actual_args); end
605
+ end
606
+
607
+ module RSpec::Mocks::ExampleMethods
608
+ include ::RSpec::Mocks::ArgumentMatchers
609
+ include ::RSpec::Mocks::ExampleMethods::ExpectHost
610
+
611
+ def allow(target); end
612
+ def allow_any_instance_of(klass); end
613
+ def allow_message_expectations_on_nil; end
614
+ def class_double(doubled_class, *args); end
615
+ def class_spy(*args); end
616
+ def double(*args); end
617
+ def expect_any_instance_of(klass); end
618
+ def have_received(method_name, &block); end
619
+ def hide_const(constant_name); end
620
+ def instance_double(doubled_class, *args); end
621
+ def instance_spy(*args); end
622
+ def object_double(object_or_name, *args); end
623
+ def object_spy(*args); end
624
+ def receive(method_name, &block); end
625
+ def receive_message_chain(*messages, &block); end
626
+ def receive_messages(message_return_value_hash); end
627
+ def spy(*args); end
628
+ def stub_const(constant_name, value, options = T.unsafe(nil)); end
629
+ def without_partial_double_verification; end
630
+
631
+ class << self
632
+ def declare_double(type, *args); end
633
+ def declare_verifying_double(type, ref, *args); end
634
+ def extended(object); end
635
+ def included(klass); end
636
+ end
636
637
  end
637
- class RSpec::Mocks::ExpectationTarget < RSpec::Mocks::TargetBase
638
- include RSpec::Mocks::ExpectationTargetMethods
638
+
639
+ module RSpec::Mocks::ExampleMethods::ExpectHost
640
+ def expect(target); end
639
641
  end
640
- class RSpec::Mocks::AllowanceTarget < RSpec::Mocks::TargetBase
641
- def expression; end
642
- def not_to(matcher, *_args); end
643
- def to(matcher, &block); end
644
- def to_not(matcher, *_args); end
642
+
643
+ class RSpec::Mocks::ExpectChain < ::RSpec::Mocks::MessageChain
644
+ private
645
+
646
+ def expectation(object, message, &return_block); end
647
+
648
+ class << self
649
+ def expect_chain_on(object, *chain, &blk); end
650
+ end
645
651
  end
646
- class RSpec::Mocks::AnyInstanceAllowanceTarget < RSpec::Mocks::TargetBase
647
- def expression; end
648
- def not_to(matcher, *_args); end
649
- def to(matcher, &block); end
650
- def to_not(matcher, *_args); end
652
+
653
+ class RSpec::Mocks::ExpectationTarget < ::RSpec::Mocks::TargetBase
654
+ include ::RSpec::Mocks::ExpectationTargetMethods
651
655
  end
652
- class RSpec::Mocks::AnyInstanceExpectationTarget < RSpec::Mocks::TargetBase
656
+
657
+ module RSpec::Mocks::ExpectationTargetMethods
658
+ include ::RSpec::Mocks::TargetDelegationInstanceMethods
659
+ extend ::RSpec::Mocks::TargetDelegationClassMethods
660
+
653
661
  def expression; end
654
662
  def not_to(matcher, &block); end
655
663
  def to(matcher, &block); end
656
664
  def to_not(matcher, &block); end
657
665
  end
658
- module RSpec::Mocks::Syntax
659
- def self.default_should_syntax_host; end
660
- def self.disable_expect(syntax_host = nil); end
661
- def self.disable_should(syntax_host = nil); end
662
- def self.enable_expect(syntax_host = nil); end
663
- def self.enable_should(syntax_host = nil); end
664
- def self.expect_enabled?(syntax_host = nil); end
665
- def self.should_enabled?(syntax_host = nil); end
666
- def self.warn_about_should!; end
667
- def self.warn_unless_should_configured(method_name, replacement = nil); end
668
- end
669
- class BasicObject
670
- def as_null_object; end
671
- def null_object?; end
672
- def received_message?(message, *args, &block); end
673
- def should_not_receive(message, &block); end
674
- def should_receive(message, opts = nil, &block); end
675
- def stub(message_or_hash, opts = nil, &block); end
676
- def stub_chain(*chain, &blk); end
677
- def unstub(message); end
678
- end
679
- class Class < Module
680
- def any_instance; end
681
- end
682
- class RSpec::Mocks::Configuration
683
- def add_stub_and_should_receive_to(*modules); end
684
- def allow_message_expectations_on_nil; end
685
- def allow_message_expectations_on_nil=(arg0); end
686
- def before_verifying_doubles(&block); end
687
- def color?; end
688
- def initialize; end
689
- def patch_marshal_to_support_partial_doubles=(val); end
690
- def reset_syntaxes_to_default; end
691
- def syntax; end
692
- def syntax=(*values); end
693
- def temporarily_suppress_partial_double_verification; end
694
- def temporarily_suppress_partial_double_verification=(arg0); end
695
- def transfer_nested_constants=(arg0); end
696
- def transfer_nested_constants?; end
697
- def verify_doubled_constant_names=(arg0); end
698
- def verify_doubled_constant_names?; end
699
- def verify_partial_doubles=(val); end
700
- def verify_partial_doubles?; end
701
- def verifying_double_callbacks; end
702
- def when_declaring_verifying_double(&block); end
703
- def yield_receiver_to_any_instance_implementation_blocks=(arg0); end
704
- def yield_receiver_to_any_instance_implementation_blocks?; end
705
- end
706
- class RSpec::Mocks::VerifyingMessageExpectation < RSpec::Mocks::MessageExpectation
707
- def initialize(*args); end
708
- def method_reference; end
709
- def method_reference=(arg0); end
710
- def validate_expected_arguments!; end
711
- def with(*args, &block); end
712
- end
713
- class RSpec::Mocks::MethodReference
714
- def defined?; end
715
- def implemented?; end
716
- def initialize(object_reference, method_name); end
717
- def original_method; end
718
- def self.for(object_reference, method_name); end
719
- def self.instance_method_visibility_for(klass, method_name); end
720
- def self.method_defined_at_any_visibility?(klass, method_name); end
721
- def self.method_visibility_for(object, method_name); end
722
- def unimplemented?; end
723
- def visibility; end
724
- def with_signature; end
666
+
667
+ class RSpec::Mocks::ExpiredTestDoubleError < ::RSpec::Mocks::MockExpectationError; end
668
+ RSpec::Mocks::IGNORED_BACKTRACE_LINE = T.let(T.unsafe(nil), String)
669
+
670
+ class RSpec::Mocks::Implementation
671
+ def call(*args, &block); end
672
+ def initial_action; end
673
+ def initial_action=(_arg0); end
674
+ def inner_action; end
675
+ def inner_action=(_arg0); end
676
+ def present?; end
677
+ def terminal_action; end
678
+ def terminal_action=(_arg0); end
679
+
680
+ private
681
+
682
+ def actions; end
725
683
  end
726
- class RSpec::Mocks::InstanceMethodReference < RSpec::Mocks::MethodReference
684
+
685
+ class RSpec::Mocks::InstanceMethodReference < ::RSpec::Mocks::MethodReference
686
+ private
687
+
727
688
  def find_method(mod); end
728
689
  def method_defined?(mod); end
729
690
  def method_implemented?(mod); end
730
691
  def visibility_from(mod); end
731
692
  end
732
- class RSpec::Mocks::ObjectMethodReference < RSpec::Mocks::MethodReference
733
- def find_method(object); end
734
- def method_defined?(object); end
735
- def method_implemented?(object); end
736
- def self.for(object_reference, method_name); end
737
- def visibility_from(object); end
738
- end
739
- class RSpec::Mocks::ClassNewMethodReference < RSpec::Mocks::ObjectMethodReference
740
- def self.applies_to?(method_name); end
741
- def with_signature; end
742
- end
743
- class RSpec::Mocks::CallbackInvocationStrategy
744
- def call(doubled_module); end
745
- end
746
- class RSpec::Mocks::NoCallbackInvocationStrategy
747
- def call(_doubled_module); end
748
- end
749
- module RSpec::Mocks::VerifyingProxyMethods
750
- def add_message_expectation(method_name, opts = nil, &block); end
751
- def add_simple_stub(method_name, *args); end
752
- def add_stub(method_name, opts = nil, &implementation); end
753
- def ensure_implemented(method_name); end
754
- def ensure_publicly_implemented(method_name, _object); end
755
- end
756
- class RSpec::Mocks::VerifyingProxy < RSpec::Mocks::TestDoubleProxy
757
- def initialize(object, order_group, doubled_module, method_reference_class); end
758
- def method_reference; end
759
- def validate_arguments!(method_name, args); end
760
- def visibility_for(method_name); end
761
- include RSpec::Mocks::VerifyingProxyMethods
762
- end
763
- class RSpec::Mocks::VerifyingPartialDoubleProxy < RSpec::Mocks::PartialDoubleProxy
764
- def ensure_implemented(_method_name); end
765
- def initialize(object, expectation_ordering, optional_callback_invocation_strategy = nil); end
766
- def method_reference; end
767
- include RSpec::Mocks::VerifyingProxyMethods
768
- end
769
- class RSpec::Mocks::VerifyingPartialClassDoubleProxy < RSpec::Mocks::VerifyingPartialDoubleProxy
770
- include RSpec::Mocks::PartialClassDoubleProxyMethods
771
- end
772
- class RSpec::Mocks::VerifyingMethodDouble < RSpec::Mocks::MethodDouble
773
- def add_expectation(*args, &block); end
774
- def add_stub(*args, &block); end
775
- def initialize(object, method_name, proxy, method_reference); end
776
- def message_expectation_class; end
777
- def proxy_method_invoked(obj, *args, &block); end
778
- def validate_arguments!(actual_args); end
779
- end
780
- class RSpec::Mocks::VerifyingExistingMethodDouble < RSpec::Mocks::VerifyingMethodDouble
781
- def initialize(object, method_name, proxy); end
782
- def self.for(object, method_name, proxy); end
783
- def unimplemented?; end
784
- def with_signature; end
785
- end
786
- class RSpec::Mocks::VerifyingExistingClassNewMethodDouble < RSpec::Mocks::VerifyingExistingMethodDouble
787
- def with_signature; end
788
- end
789
- module RSpec::Mocks::VerifyingDouble
790
- def __send__(name, *args, &block); end
791
- def initialize(doubled_module, *args); end
792
- def method_missing(message, *args, &block); end
793
- def respond_to?(message, include_private = nil); end
794
- def send(name, *args, &block); end
795
- end
796
- module RSpec::Mocks::VerifyingDouble::SilentIO
797
- def self.method_missing(*arg0); end
798
- def self.respond_to?(*arg0); end
693
+
694
+ class RSpec::Mocks::InstanceMethodStasher
695
+ def initialize(object, method); end
696
+
697
+ def handle_restoration_failures; end
698
+ def method_is_stashed?; end
699
+ def original_method; end
700
+ def restore; end
701
+ def stash; end
702
+
703
+ private
704
+
705
+ def method_defined_directly_on_klass?; end
706
+ def method_defined_on_klass?(klass = T.unsafe(nil)); end
707
+ def method_owned_by_klass?; end
799
708
  end
709
+
800
710
  class RSpec::Mocks::InstanceVerifyingDouble
711
+ include ::RSpec::Mocks::TestDouble
712
+ include ::RSpec::Mocks::VerifyingDouble
713
+
801
714
  def __build_mock_proxy(order_group); end
802
- include RSpec::Mocks::TestDouble
803
- include RSpec::Mocks::VerifyingDouble
804
- end
805
- module RSpec::Mocks::ObjectVerifyingDoubleMethods
806
- def __build_mock_proxy(order_group); end
807
- def as_stubbed_const(options = nil); end
808
- include RSpec::Mocks::TestDouble
809
- include RSpec::Mocks::VerifyingDouble
810
- end
811
- class RSpec::Mocks::ObjectVerifyingDouble
812
- include RSpec::Mocks::ObjectVerifyingDoubleMethods
813
- end
814
- class RSpec::Mocks::ClassVerifyingDouble < Module
815
- include RSpec::Mocks::ObjectVerifyingDoubleMethods
816
715
  end
817
- module RSpec::Mocks::Version
818
- end
819
- module RSpec::Support
820
- def self.require_rspec_mocks(f); end
716
+
717
+ class RSpec::Mocks::MarshalExtension
718
+ class << self
719
+ def patch!; end
720
+ def unpatch!; end
721
+ end
821
722
  end
822
- module RSpec::Mocks::Matchers
723
+
724
+ module RSpec::Mocks::Matchers; end
725
+
726
+ class RSpec::Mocks::Matchers::ExpectationCustomization
727
+ def initialize(method_name, args, block); end
728
+
729
+ def block; end
730
+ def block=(_arg0); end
731
+ def playback_onto(expectation); end
823
732
  end
824
- module RSpec::Mocks::Matchers::Matcher
825
- end
826
- module RSpec::Mocks::AnyInstance
827
- def self.error_generator; end
828
- end
829
- class RSpec::Mocks::AnyInstance::Chain
830
- def constrained_to_any_of?(*constraints); end
831
- def expectation_fulfilled!; end
832
- def initialize(recorder, *args, &block); end
833
- def last_message; end
834
- def matches_args?(*args); end
835
- def messages; end
836
- def negated?; end
837
- def never; end
838
- def playback!(instance); end
839
- def record(rspec_method_name, *args, &block); end
840
- def with(*args, &block); end
841
- include RSpec::Mocks::AnyInstance::Chain::Customizations
842
- end
843
- module RSpec::Mocks::AnyInstance::Chain::Customizations
844
- def and_call_original(*args, &block); end
845
- def and_raise(*args, &block); end
846
- def and_return(*args, &block); end
847
- def and_throw(*args, &block); end
848
- def and_wrap_original(*args, &block); end
849
- def and_yield(*args, &block); end
850
- def at_least(*args, &block); end
851
- def at_most(*args, &block); end
852
- def exactly(*args, &block); end
853
- def never(*args, &block); end
854
- def once(*args, &block); end
855
- def self.record(method_name); end
856
- def thrice(*args, &block); end
857
- def time(*args, &block); end
858
- def times(*args, &block); end
859
- def twice(*args, &block); end
860
- def with(*args, &block); end
861
- end
862
- class RSpec::Mocks::AnyInstance::ErrorGenerator < RSpec::Mocks::ErrorGenerator
863
- def raise_does_not_implement_error(klass, method_name); end
864
- def raise_message_already_received_by_other_instance_error(method_name, object_inspect, invoked_instance); end
865
- def raise_not_supported_with_prepend_error(method_name, problem_mod); end
866
- def raise_second_instance_received_message_error(unfulfilled_expectations); end
867
- end
868
- class RSpec::Mocks::AnyInstance::StubChain < RSpec::Mocks::AnyInstance::Chain
869
- def create_message_expectation_on(instance); end
870
- def expectation_fulfilled?; end
871
- def invocation_order; end
872
- def verify_invocation_order(rspec_method_name, *_args, &_block); end
873
- end
874
- class RSpec::Mocks::AnyInstance::StubChainChain < RSpec::Mocks::AnyInstance::StubChain
875
- def create_message_expectation_on(instance); end
876
- def initialize(*args); end
877
- def invocation_order; end
878
- end
879
- class RSpec::Mocks::AnyInstance::ExpectChainChain < RSpec::Mocks::AnyInstance::StubChain
880
- def create_message_expectation_on(instance); end
881
- def expectation_fulfilled?; end
882
- def initialize(*args); end
883
- def invocation_order; end
884
- def playback!(instance); end
885
- end
886
- class RSpec::Mocks::AnyInstance::ExpectationChain < RSpec::Mocks::AnyInstance::Chain
887
- def expectation_fulfilled?; end
888
- def initialize(*args, &block); end
889
- def verify_invocation_order(_rspec_method_name, *_args, &_block); end
890
- end
891
- class RSpec::Mocks::AnyInstance::PositiveExpectationChain < RSpec::Mocks::AnyInstance::ExpectationChain
892
- def create_message_expectation_on(instance); end
893
- def invocation_order; end
894
- end
895
- class RSpec::Mocks::AnyInstance::MessageChains
896
- def [](method_name); end
897
- def add(method_name, chain); end
898
- def all_expectations_fulfilled?; end
899
- def each_unfulfilled_expectation_matching(method_name, *args); end
900
- def has_expectation?(method_name); end
901
- def initialize; end
902
- def playback!(instance, method_name); end
903
- def raise_if_second_instance_to_receive_message(instance); end
904
- def received_expected_message!(method_name); end
905
- def remove_stub_chains_for!(method_name); end
906
- def unfulfilled_expectations; end
907
- end
908
- class RSpec::Mocks::AnyInstance::Recorder
909
- def allow_no_prepended_module_definition_of(method_name); end
910
- def already_observing?(method_name); end
911
- def ancestor_is_an_observer?(method_name); end
912
- def backup_method!(method_name); end
913
- def build_alias_method_name(method_name); end
914
- def expect_chain(*method_names_and_optional_return_values, &block); end
915
- def initialize(klass); end
916
- def instance_that_received(method_name); end
917
- def klass; end
918
- def mark_invoked!(method_name); end
919
- def message_chains; end
920
- def normalize_chain(*args); end
921
- def notify_received_message(_object, message, args, _blk); end
922
- def observe!(method_name); end
923
- def playback!(instance, method_name); end
924
- def public_protected_or_private_method_defined?(method_name); end
925
- def received_expected_message!(method_name); end
926
- def remove_dummy_method!(method_name); end
927
- def restore_method!(method_name); end
928
- def restore_original_method!(method_name); end
929
- def should_not_receive(method_name, &block); end
930
- def should_receive(method_name, &block); end
931
- def stop_all_observation!; end
932
- def stop_observing!(method_name); end
933
- def stub(method_name, &block); end
934
- def stub_chain(*method_names_and_optional_return_values, &block); end
935
- def stubs; end
936
- def super_class_observers_for(method_name); end
937
- def super_class_observing?(method_name); end
938
- def unstub(method_name); end
939
- def verify; end
940
- end
941
- class RSpec::Mocks::AnyInstance::Proxy
942
- def expect_chain(*chain, &block); end
943
- def initialize(recorder, target_proxies); end
944
- def klass; end
945
- def perform_proxying(method_name, args, block, &target_proxy_block); end
946
- def should_not_receive(method_name, &block); end
947
- def should_receive(method_name, &block); end
948
- def stub(method_name_or_method_map, &block); end
949
- def stub_chain(*chain, &block); end
950
- def unstub(method_name); end
951
- end
952
- class RSpec::Mocks::AnyInstance::FluentInterfaceProxy
953
- def initialize(targets); end
954
- def method_missing(*args, &block); end
955
- def respond_to_missing?(method_name, include_private = nil); end
956
- end
957
- class RSpec::Mocks::MessageChain
958
- def block; end
959
- def chain; end
960
- def chain_on(object, *chain, &block); end
961
- def find_matching_expectation; end
962
- def find_matching_stub; end
963
- def format_chain(*chain, &blk); end
964
- def initialize(object, *chain, &blk); end
965
- def object; end
966
- def setup_chain; end
967
- end
968
- class RSpec::Mocks::ExpectChain < RSpec::Mocks::MessageChain
969
- def expectation(object, message, &return_block); end
970
- def self.expect_chain_on(object, *chain, &blk); end
971
- end
972
- class RSpec::Mocks::StubChain < RSpec::Mocks::MessageChain
973
- def expectation(object, message, &return_block); end
974
- def self.stub_chain_on(object, *chain, &blk); end
975
- end
976
- class RSpec::Mocks::MarshalExtension
977
- def self.patch!; end
978
- def self.unpatch!; end
979
- end
980
- class RSpec::Mocks::Matchers::HaveReceived
981
- def apply_constraints_to(expectation); end
982
- def at_least(*args); end
983
- def at_most(*args); end
984
- def capture_failure_message; end
985
- def count_constraint; end
986
- def description; end
987
- def disallow(type, reason = nil); end
988
- def does_not_match?(subject); end
989
- def ensure_count_unconstrained; end
990
- def exactly(*args); end
991
- def expect; end
992
- def expected_messages_received_in_order?; end
993
- def failure_message; end
994
- def failure_message_when_negated; end
995
- def initialize(method_name, &block); end
996
- def matches?(subject, &block); end
997
- def mock_proxy; end
998
- def name; end
999
- def notify_failure_message; end
1000
- def once(*args); end
1001
- def ordered(*args); end
1002
- def setup_allowance(_subject, &_block); end
1003
- def setup_any_instance_allowance(_subject, &_block); end
1004
- def setup_any_instance_expectation(_subject, &_block); end
1005
- def setup_any_instance_negative_expectation(_subject, &_block); end
1006
- def setup_expectation(subject, &block); end
1007
- def setup_negative_expectation(subject, &block); end
1008
- def thrice(*args); end
1009
- def time(*args); end
1010
- def times(*args); end
1011
- def twice(*args); end
1012
- def with(*args); end
1013
- include RSpec::Mocks::Matchers::Matcher
1014
- end
1015
- class RSpec::Mocks::Matchers::ExpectationCustomization
1016
- def block; end
1017
- def block=(arg0); end
1018
- def initialize(method_name, args, block); end
1019
- def playback_onto(expectation); end
733
+
734
+ class RSpec::Mocks::Matchers::HaveReceived
735
+ include ::RSpec::Mocks::Matchers::Matcher
736
+
737
+ def initialize(method_name, &block); end
738
+
739
+ def at_least(*args); end
740
+ def at_most(*args); end
741
+ def description; end
742
+ def does_not_match?(subject); end
743
+ def exactly(*args); end
744
+ def failure_message; end
745
+ def failure_message_when_negated; end
746
+ def matches?(subject, &block); end
747
+ def name; end
748
+ def once(*args); end
749
+ def ordered(*args); end
750
+ def setup_allowance(_subject, &_block); end
751
+ def setup_any_instance_allowance(_subject, &_block); end
752
+ def setup_any_instance_expectation(_subject, &_block); end
753
+ def setup_any_instance_negative_expectation(_subject, &_block); end
754
+ def setup_expectation(subject, &block); end
755
+ def setup_negative_expectation(subject, &block); end
756
+ def thrice(*args); end
757
+ def time(*args); end
758
+ def times(*args); end
759
+ def twice(*args); end
760
+ def with(*args); end
761
+
762
+ private
763
+
764
+ def apply_constraints_to(expectation); end
765
+ def capture_failure_message; end
766
+ def count_constraint; end
767
+ def disallow(type, reason = T.unsafe(nil)); end
768
+ def ensure_count_unconstrained; end
769
+ def expect; end
770
+ def expected_messages_received_in_order?; end
771
+ def mock_proxy; end
772
+ def notify_failure_message; end
1020
773
  end
774
+
775
+ RSpec::Mocks::Matchers::HaveReceived::ARGS_CONSTRAINTS = T.let(T.unsafe(nil), Array)
776
+ RSpec::Mocks::Matchers::HaveReceived::CONSTRAINTS = T.let(T.unsafe(nil), Array)
777
+ RSpec::Mocks::Matchers::HaveReceived::COUNT_CONSTRAINTS = T.let(T.unsafe(nil), Array)
778
+ module RSpec::Mocks::Matchers::Matcher; end
779
+
1021
780
  class RSpec::Mocks::Matchers::Receive
781
+ include ::RSpec::Mocks::Matchers::Matcher
782
+
783
+ def initialize(message, block); end
784
+
1022
785
  def and_call_original(*args, &block); end
1023
786
  def and_raise(*args, &block); end
1024
787
  def and_return(*args, &block); end
@@ -1027,13 +790,10 @@ class RSpec::Mocks::Matchers::Receive
1027
790
  def and_yield(*args, &block); end
1028
791
  def at_least(*args, &block); end
1029
792
  def at_most(*args, &block); end
1030
- def describable; end
1031
793
  def description; end
1032
794
  def does_not_match?(subject, &block); end
1033
795
  def exactly(*args, &block); end
1034
- def initialize(message, block); end
1035
796
  def matches?(subject, &block); end
1036
- def move_block_to_last_customization(block); end
1037
797
  def name; end
1038
798
  def never(*args, &block); end
1039
799
  def once(*args, &block); end
@@ -1041,25 +801,36 @@ class RSpec::Mocks::Matchers::Receive
1041
801
  def setup_allowance(subject, &block); end
1042
802
  def setup_any_instance_allowance(subject, &block); end
1043
803
  def setup_any_instance_expectation(subject, &block); end
1044
- def setup_any_instance_method_substitute(subject, method, block); end
1045
804
  def setup_any_instance_negative_expectation(subject, &block); end
1046
805
  def setup_expectation(subject, &block); end
1047
- def setup_method_substitute(host, method, block, *args); end
1048
- def setup_mock_proxy_method_substitute(subject, method, block); end
1049
806
  def setup_negative_expectation(subject, &block); end
1050
807
  def thrice(*args, &block); end
1051
808
  def time(*args, &block); end
1052
809
  def times(*args, &block); end
1053
810
  def twice(*args, &block); end
1054
- def warn_if_any_instance(expression, subject); end
1055
811
  def with(*args, &block); end
1056
- include RSpec::Mocks::Matchers::Matcher
812
+
813
+ private
814
+
815
+ def describable; end
816
+ def move_block_to_last_customization(block); end
817
+ def setup_any_instance_method_substitute(subject, method, block); end
818
+ def setup_method_substitute(host, method, block, *args); end
819
+ def setup_mock_proxy_method_substitute(subject, method, block); end
820
+ def warn_if_any_instance(expression, subject); end
1057
821
  end
822
+
1058
823
  class RSpec::Mocks::Matchers::Receive::DefaultDescribable
1059
- def description_for(verb); end
1060
824
  def initialize(message); end
825
+
826
+ def description_for(verb); end
1061
827
  end
828
+
1062
829
  class RSpec::Mocks::Matchers::ReceiveMessageChain
830
+ include ::RSpec::Mocks::Matchers::Matcher
831
+
832
+ def initialize(chain, &block); end
833
+
1063
834
  def and_call_original(*args, &block); end
1064
835
  def and_raise(*args, &block); end
1065
836
  def and_return(*args, &block); end
@@ -1067,33 +838,656 @@ class RSpec::Mocks::Matchers::ReceiveMessageChain
1067
838
  def and_yield(*args, &block); end
1068
839
  def description; end
1069
840
  def does_not_match?(*_args); end
1070
- def formatted_chain; end
1071
- def initialize(chain, &block); end
1072
841
  def matches?(subject, &block); end
1073
842
  def name; end
1074
- def replay_customizations(chain); end
1075
843
  def setup_allowance(subject, &block); end
1076
844
  def setup_any_instance_allowance(subject, &block); end
1077
845
  def setup_any_instance_expectation(subject, &block); end
1078
846
  def setup_expectation(subject, &block); end
1079
847
  def setup_negative_expectation(*_args); end
1080
848
  def with(*args, &block); end
1081
- include RSpec::Mocks::Matchers::Matcher
849
+
850
+ private
851
+
852
+ def formatted_chain; end
853
+ def replay_customizations(chain); end
1082
854
  end
855
+
1083
856
  class RSpec::Mocks::Matchers::ReceiveMessages
1084
- def any_instance_of(subject); end
857
+ include ::RSpec::Mocks::Matchers::Matcher
858
+
859
+ def initialize(message_return_value_hash); end
860
+
1085
861
  def description; end
1086
862
  def does_not_match?(_subject); end
1087
- def each_message_on(host); end
1088
- def initialize(message_return_value_hash); end
1089
863
  def matches?(subject); end
1090
864
  def name; end
1091
- def proxy_on(subject); end
1092
865
  def setup_allowance(subject); end
1093
866
  def setup_any_instance_allowance(subject); end
1094
867
  def setup_any_instance_expectation(subject); end
1095
868
  def setup_expectation(subject); end
1096
869
  def setup_negative_expectation(_subject); end
1097
870
  def warn_about_block; end
1098
- include RSpec::Mocks::Matchers::Matcher
871
+
872
+ private
873
+
874
+ def any_instance_of(subject); end
875
+ def each_message_on(host); end
876
+ def proxy_on(subject); end
877
+ end
878
+
879
+ class RSpec::Mocks::MessageChain
880
+ def initialize(object, *chain, &blk); end
881
+
882
+ def block; end
883
+ def chain; end
884
+ def object; end
885
+ def setup_chain; end
886
+
887
+ private
888
+
889
+ def chain_on(object, *chain, &block); end
890
+ def find_matching_expectation; end
891
+ def find_matching_stub; end
892
+ def format_chain(*chain, &blk); end
1099
893
  end
894
+
895
+ class RSpec::Mocks::MessageExpectation
896
+ include ::RSpec::Mocks::MessageExpectation::ImplementationDetails
897
+
898
+ def and_call_original; end
899
+ def and_raise(*args); end
900
+ def and_return(first_value, *values); end
901
+ def and_throw(*args); end
902
+ def and_wrap_original(&block); end
903
+ def and_yield(*args, &block); end
904
+ def at_least(n, &block); end
905
+ def at_most(n, &block); end
906
+ def exactly(n, &block); end
907
+ def inspect; end
908
+ def never; end
909
+ def once(&block); end
910
+ def ordered(&block); end
911
+ def thrice(&block); end
912
+ def time(&block); end
913
+ def times(&block); end
914
+ def to_s; end
915
+ def twice(&block); end
916
+ def with(*args, &block); end
917
+ end
918
+
919
+ module RSpec::Mocks::MessageExpectation::ImplementationDetails
920
+ def initialize(error_generator, expectation_ordering, expected_from, method_double, type = T.unsafe(nil), opts = T.unsafe(nil), &implementation_block); end
921
+
922
+ def actual_received_count_matters?; end
923
+ def additional_expected_calls; end
924
+ def advise(*args); end
925
+ def and_yield_receiver_to_implementation; end
926
+ def argument_list_matcher=(_arg0); end
927
+ def called_max_times?; end
928
+ def description_for(verb); end
929
+ def ensure_expected_ordering_received!; end
930
+ def expectation_count_type; end
931
+ def expected_args; end
932
+ def expected_messages_received?; end
933
+ def generate_error; end
934
+ def ignoring_args?; end
935
+ def implementation; end
936
+ def increase_actual_received_count!; end
937
+ def invoke(parent_stub, *args, &block); end
938
+ def invoke_without_incrementing_received_count(parent_stub, *args, &block); end
939
+ def matches?(message, *args); end
940
+ def matches_at_least_count?; end
941
+ def matches_at_most_count?; end
942
+ def matches_exact_count?; end
943
+ def matches_name_but_not_args(message, *args); end
944
+ def message; end
945
+ def negative?; end
946
+ def negative_expectation_for?(message); end
947
+ def ordered?; end
948
+ def orig_object; end
949
+ def raise_out_of_order_error; end
950
+ def raise_unexpected_message_args_error(args_for_multiple_calls); end
951
+ def safe_invoke(parent_stub, *args, &block); end
952
+ def similar_messages; end
953
+ def type; end
954
+ def unadvise(args); end
955
+ def verify_messages_received; end
956
+ def yield_receiver_to_implementation_block?; end
957
+
958
+ protected
959
+
960
+ def error_generator; end
961
+ def error_generator=(_arg0); end
962
+ def expected_from=(_arg0); end
963
+ def expected_received_count=(_arg0); end
964
+ def implementation=(_arg0); end
965
+
966
+ private
967
+
968
+ def exception_source_id; end
969
+ def has_been_invoked?; end
970
+ def initial_implementation_action=(action); end
971
+ def inner_implementation_action=(action); end
972
+ def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, &block); end
973
+ def raise_already_invoked_error_if_necessary(calling_customization); end
974
+ def set_expected_received_count(relativity, n); end
975
+ def terminal_implementation_action=(action); end
976
+ def warn_about_stub_override; end
977
+ def wrap_original(method_name, &block); end
978
+ end
979
+
980
+ class RSpec::Mocks::MethodDouble
981
+ def initialize(object, method_name, proxy); end
982
+
983
+ def add_default_stub(*args, &implementation); end
984
+ def add_expectation(error_generator, expectation_ordering, expected_from, opts, &implementation); end
985
+ def add_simple_expectation(method_name, response, error_generator, backtrace_line); end
986
+ def add_simple_stub(method_name, response); end
987
+ def add_stub(error_generator, expectation_ordering, expected_from, opts = T.unsafe(nil), &implementation); end
988
+ def build_expectation(error_generator, expectation_ordering); end
989
+ def clear; end
990
+ def configure_method; end
991
+ def define_proxy_method; end
992
+ def expectations; end
993
+ def message_expectation_class; end
994
+ def method_name; end
995
+ def method_stasher; end
996
+ def object; end
997
+ def object_singleton_class; end
998
+ def original_implementation_callable; end
999
+ def original_method; end
1000
+ def proxy_method_invoked(_obj, *args, &block); end
1001
+ def raise_method_not_stubbed_error; end
1002
+ def remove_stub; end
1003
+ def remove_stub_if_present; end
1004
+ def reset; end
1005
+ def restore_original_method; end
1006
+ def restore_original_visibility; end
1007
+ def save_original_implementation_callable!; end
1008
+ def setup_simple_method_double(method_name, response, collection, error_generator = T.unsafe(nil), backtrace_line = T.unsafe(nil)); end
1009
+ def show_frozen_warning; end
1010
+ def stubs; end
1011
+ def verify; end
1012
+ def visibility; end
1013
+
1014
+ private
1015
+
1016
+ def definition_target; end
1017
+ def new_rspec_prepended_module; end
1018
+ def remove_method_from_definition_target; end
1019
+ def usable_rspec_prepended_module; end
1020
+ end
1021
+
1022
+ class RSpec::Mocks::MethodDouble::RSpecPrependedModule < ::Module; end
1023
+
1024
+ class RSpec::Mocks::MethodReference
1025
+ def initialize(object_reference, method_name); end
1026
+
1027
+ def defined?; end
1028
+ def implemented?; end
1029
+ def unimplemented?; end
1030
+ def visibility; end
1031
+ def with_signature; end
1032
+
1033
+ private
1034
+
1035
+ def original_method; end
1036
+
1037
+ class << self
1038
+ def for(object_reference, method_name); end
1039
+ def instance_method_visibility_for(klass, method_name); end
1040
+ def method_defined_at_any_visibility?(klass, method_name); end
1041
+ def method_visibility_for(object, method_name); end
1042
+ end
1043
+ end
1044
+
1045
+ class RSpec::Mocks::MockExpectationAlreadyInvokedError < ::Exception; end
1046
+ class RSpec::Mocks::MockExpectationError < ::Exception; end
1047
+
1048
+ class RSpec::Mocks::NamedObjectReference
1049
+ def initialize(const_name); end
1050
+
1051
+ def const_to_replace; end
1052
+ def defined?; end
1053
+ def description; end
1054
+ def target; end
1055
+ def when_loaded; end
1056
+
1057
+ private
1058
+
1059
+ def object; end
1060
+ end
1061
+
1062
+ class RSpec::Mocks::NegationUnsupportedError < ::StandardError; end
1063
+
1064
+ class RSpec::Mocks::NestedSpace < ::RSpec::Mocks::Space
1065
+ def initialize(parent); end
1066
+
1067
+ def constant_mutator_for(name); end
1068
+ def proxies_of(klass); end
1069
+ def registered?(object); end
1070
+
1071
+ private
1072
+
1073
+ def any_instance_recorder_not_found_for(id, klass); end
1074
+ def proxy_not_found_for(id, object); end
1075
+ end
1076
+
1077
+ class RSpec::Mocks::NoCallbackInvocationStrategy
1078
+ def call(_doubled_module); end
1079
+ end
1080
+
1081
+ class RSpec::Mocks::ObjectMethodReference < ::RSpec::Mocks::MethodReference
1082
+ private
1083
+
1084
+ def find_method(object); end
1085
+ def method_defined?(object); end
1086
+ def method_implemented?(object); end
1087
+ def visibility_from(object); end
1088
+
1089
+ class << self
1090
+ def for(object_reference, method_name); end
1091
+ end
1092
+ end
1093
+
1094
+ class RSpec::Mocks::ObjectReference
1095
+ class << self
1096
+ def for(object_module_or_name, allow_direct_object_refs = T.unsafe(nil)); end
1097
+
1098
+ private
1099
+
1100
+ def anonymous_module?(mod); end
1101
+ def name_of(mod); end
1102
+ end
1103
+ end
1104
+
1105
+ RSpec::Mocks::ObjectReference::MODULE_NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod)
1106
+
1107
+ class RSpec::Mocks::ObjectVerifyingDouble
1108
+ include ::RSpec::Mocks::TestDouble
1109
+ include ::RSpec::Mocks::VerifyingDouble
1110
+ include ::RSpec::Mocks::ObjectVerifyingDoubleMethods
1111
+ end
1112
+
1113
+ module RSpec::Mocks::ObjectVerifyingDoubleMethods
1114
+ include ::RSpec::Mocks::TestDouble
1115
+ include ::RSpec::Mocks::VerifyingDouble
1116
+
1117
+ def as_stubbed_const(options = T.unsafe(nil)); end
1118
+
1119
+ private
1120
+
1121
+ def __build_mock_proxy(order_group); end
1122
+ end
1123
+
1124
+ class RSpec::Mocks::OrderGroup
1125
+ def initialize; end
1126
+
1127
+ def clear; end
1128
+ def consume; end
1129
+ def empty?; end
1130
+ def handle_order_constraint(expectation); end
1131
+ def invoked(message); end
1132
+ def ready_for?(expectation); end
1133
+ def register(expectation); end
1134
+ def verify_invocation_order(expectation); end
1135
+
1136
+ private
1137
+
1138
+ def expectation_for(message); end
1139
+ def expectations_invoked_in_order?; end
1140
+ def expected_invocations; end
1141
+ def invoked_expectations; end
1142
+ def remaining_expectations; end
1143
+ end
1144
+
1145
+ class RSpec::Mocks::OutsideOfExampleError < ::StandardError; end
1146
+
1147
+ class RSpec::Mocks::PartialClassDoubleProxy < ::RSpec::Mocks::PartialDoubleProxy
1148
+ include ::RSpec::Mocks::PartialClassDoubleProxyMethods
1149
+ end
1150
+
1151
+ module RSpec::Mocks::PartialClassDoubleProxyMethods
1152
+ def initialize(source_space, *args); end
1153
+
1154
+ def original_method_handle_for(message); end
1155
+
1156
+ protected
1157
+
1158
+ def method_double_from_ancestor_for(message); end
1159
+ def original_unbound_method_handle_from_ancestor_for(message); end
1160
+ def superclass_proxy; end
1161
+ end
1162
+
1163
+ class RSpec::Mocks::PartialDoubleProxy < ::RSpec::Mocks::Proxy
1164
+ def add_simple_expectation(method_name, response, location); end
1165
+ def add_simple_stub(method_name, response); end
1166
+ def message_received(message, *args, &block); end
1167
+ def original_method_handle_for(message); end
1168
+ def reset; end
1169
+ def visibility_for(method_name); end
1170
+
1171
+ private
1172
+
1173
+ def any_instance_class_recorder_observing_method?(klass, method_name); end
1174
+ end
1175
+
1176
+ class RSpec::Mocks::Proxy
1177
+ def initialize(object, order_group, options = T.unsafe(nil)); end
1178
+
1179
+ def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end
1180
+ def add_simple_expectation(method_name, response, location); end
1181
+ def add_simple_stub(method_name, response); end
1182
+ def add_stub(method_name, opts = T.unsafe(nil), &implementation); end
1183
+ def as_null_object; end
1184
+ def build_expectation(method_name); end
1185
+ def check_for_unexpected_arguments(expectation); end
1186
+ def ensure_implemented(*_args); end
1187
+ def has_negative_expectation?(message); end
1188
+ def message_received(message, *args, &block); end
1189
+ def messages_arg_list; end
1190
+ def method_double_if_exists_for_message(message); end
1191
+ def null_object?; end
1192
+ def object; end
1193
+ def original_method_handle_for(_message); end
1194
+ def prepended_modules_of_singleton_class; end
1195
+ def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
1196
+ def raise_unexpected_message_error(method_name, args); end
1197
+ def received_message?(method_name, *args, &block); end
1198
+ def record_message_received(message, *args, &block); end
1199
+ def remove_stub(method_name); end
1200
+ def remove_stub_if_present(method_name); end
1201
+ def replay_received_message_on(expectation, &block); end
1202
+ def reset; end
1203
+ def verify; end
1204
+ def visibility_for(_method_name); end
1205
+
1206
+ private
1207
+
1208
+ def find_almost_matching_expectation(method_name, *args); end
1209
+ def find_almost_matching_stub(method_name, *args); end
1210
+ def find_best_matching_expectation_for(method_name); end
1211
+ def find_matching_expectation(method_name, *args); end
1212
+ def find_matching_method_stub(method_name, *args); end
1213
+ def method_double_for(message); end
1214
+
1215
+ class << self
1216
+ def prepended_modules_of(klass); end
1217
+ end
1218
+ end
1219
+
1220
+ RSpec::Mocks::Proxy::DEFAULT_MESSAGE_EXPECTATION_OPTS = T.let(T.unsafe(nil), Hash)
1221
+
1222
+ class RSpec::Mocks::Proxy::SpecificMessage < ::Struct
1223
+ def ==(expectation); end
1224
+ def args; end
1225
+ def args=(_); end
1226
+ def message; end
1227
+ def message=(_); end
1228
+ def object; end
1229
+ def object=(_); end
1230
+
1231
+ class << self
1232
+ def [](*_arg0); end
1233
+ def inspect; end
1234
+ def keyword_init?; end
1235
+ def members; end
1236
+ def new(*_arg0); end
1237
+ end
1238
+ end
1239
+
1240
+ class RSpec::Mocks::ProxyForNil < ::RSpec::Mocks::PartialDoubleProxy
1241
+ def initialize(order_group); end
1242
+
1243
+ def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end
1244
+ def add_stub(method_name, opts = T.unsafe(nil), &implementation); end
1245
+ def disallow_expectations; end
1246
+ def disallow_expectations=(_arg0); end
1247
+ def warn_about_expectations; end
1248
+ def warn_about_expectations=(_arg0); end
1249
+
1250
+ private
1251
+
1252
+ def raise_error(method_name); end
1253
+ def set_expectation_behavior; end
1254
+ def warn(method_name); end
1255
+ def warn_or_raise!(method_name); end
1256
+ end
1257
+
1258
+ class RSpec::Mocks::RootSpace
1259
+ def any_instance_proxy_for(*_args); end
1260
+ def any_instance_recorder_for(*_args); end
1261
+ def any_instance_recorders_from_ancestry_of(_object); end
1262
+ def new_scope; end
1263
+ def proxy_for(*_args); end
1264
+ def register_constant_mutator(_mutator); end
1265
+ def registered?(_object); end
1266
+ def reset_all; end
1267
+ def superclass_proxy_for(*_args); end
1268
+ def verify_all; end
1269
+
1270
+ private
1271
+
1272
+ def raise_lifecycle_message; end
1273
+ end
1274
+
1275
+ class RSpec::Mocks::SimpleMessageExpectation
1276
+ def initialize(message, response, error_generator, backtrace_line = T.unsafe(nil)); end
1277
+
1278
+ def called_max_times?; end
1279
+ def invoke(*_); end
1280
+ def matches?(message, *_); end
1281
+ def unadvise(_); end
1282
+ def verify_messages_received; end
1283
+ end
1284
+
1285
+ class RSpec::Mocks::Space
1286
+ def initialize; end
1287
+
1288
+ def any_instance_mutex; end
1289
+ def any_instance_proxy_for(klass); end
1290
+ def any_instance_recorder_for(klass, only_return_existing = T.unsafe(nil)); end
1291
+ def any_instance_recorders; end
1292
+ def any_instance_recorders_from_ancestry_of(object); end
1293
+ def constant_mutator_for(name); end
1294
+ def ensure_registered(object); end
1295
+ def new_scope; end
1296
+ def proxies; end
1297
+ def proxies_of(klass); end
1298
+ def proxy_for(object); end
1299
+ def proxy_mutex; end
1300
+ def register_constant_mutator(mutator); end
1301
+ def registered?(object); end
1302
+ def reset_all; end
1303
+ def superclass_proxy_for(klass); end
1304
+ def verify_all; end
1305
+
1306
+ private
1307
+
1308
+ def any_instance_recorder_not_found_for(id, klass); end
1309
+ def class_proxy_with_callback_verification_strategy(object, strategy); end
1310
+ def id_for(object); end
1311
+ def new_mutex; end
1312
+ def proxy_not_found_for(id, object); end
1313
+ def superclass_proxy_not_found_for(id, object); end
1314
+ end
1315
+
1316
+ class RSpec::Mocks::StubChain < ::RSpec::Mocks::MessageChain
1317
+ private
1318
+
1319
+ def expectation(object, message, &return_block); end
1320
+
1321
+ class << self
1322
+ def stub_chain_on(object, *chain, &blk); end
1323
+ end
1324
+ end
1325
+
1326
+ module RSpec::Mocks::Syntax
1327
+ class << self
1328
+ def default_should_syntax_host; end
1329
+ def disable_expect(syntax_host = T.unsafe(nil)); end
1330
+ def disable_should(syntax_host = T.unsafe(nil)); end
1331
+ def enable_expect(syntax_host = T.unsafe(nil)); end
1332
+ def enable_should(syntax_host = T.unsafe(nil)); end
1333
+ def expect_enabled?(syntax_host = T.unsafe(nil)); end
1334
+ def should_enabled?(syntax_host = T.unsafe(nil)); end
1335
+ def warn_about_should!; end
1336
+ def warn_unless_should_configured(method_name, replacement = T.unsafe(nil)); end
1337
+ end
1338
+ end
1339
+
1340
+ class RSpec::Mocks::TargetBase
1341
+ include ::RSpec::Mocks::TargetDelegationInstanceMethods
1342
+ extend ::RSpec::Mocks::TargetDelegationClassMethods
1343
+
1344
+ def initialize(target); end
1345
+ end
1346
+
1347
+ module RSpec::Mocks::TargetDelegationClassMethods
1348
+ def delegate_not_to(matcher_method, options = T.unsafe(nil)); end
1349
+ def delegate_to(matcher_method); end
1350
+ def disallow_negation(method_name); end
1351
+ end
1352
+
1353
+ module RSpec::Mocks::TargetDelegationInstanceMethods
1354
+ def target; end
1355
+
1356
+ private
1357
+
1358
+ def define_matcher(matcher, name, &block); end
1359
+ def matcher_allowed?(matcher); end
1360
+ def raise_negation_unsupported(method_name, matcher); end
1361
+ def raise_unsupported_matcher(method_name, matcher); end
1362
+ end
1363
+
1364
+ module RSpec::Mocks::TestDouble
1365
+ def initialize(name = T.unsafe(nil), stubs = T.unsafe(nil)); end
1366
+
1367
+ def ==(other); end
1368
+ def __build_mock_proxy_unless_expired(order_group); end
1369
+ def __disallow_further_usage!; end
1370
+ def as_null_object; end
1371
+ def freeze; end
1372
+ def inspect; end
1373
+ def null_object?; end
1374
+ def respond_to?(message, incl_private = T.unsafe(nil)); end
1375
+ def to_s; end
1376
+
1377
+ private
1378
+
1379
+ def __build_mock_proxy(order_group); end
1380
+ def __mock_proxy; end
1381
+ def __raise_expired_error; end
1382
+ def assign_stubs(stubs); end
1383
+ def initialize_copy(other); end
1384
+ def method_missing(message, *args, &block); end
1385
+ end
1386
+
1387
+ module RSpec::Mocks::TestDoubleFormatter
1388
+ class << self
1389
+ def format(dbl, unwrap = T.unsafe(nil)); end
1390
+
1391
+ private
1392
+
1393
+ def name_desc(dbl); end
1394
+ def type_desc(dbl); end
1395
+ def verified_module_desc(dbl); end
1396
+ end
1397
+ end
1398
+
1399
+ class RSpec::Mocks::TestDoubleProxy < ::RSpec::Mocks::Proxy
1400
+ def reset; end
1401
+ end
1402
+
1403
+ class RSpec::Mocks::UnsupportedMatcherError < ::StandardError; end
1404
+
1405
+ module RSpec::Mocks::VerifyingDouble
1406
+ def initialize(doubled_module, *args); end
1407
+
1408
+ def __send__(name, *args, &block); end
1409
+ def method_missing(message, *args, &block); end
1410
+ def respond_to?(message, include_private = T.unsafe(nil)); end
1411
+ def send(name, *args, &block); end
1412
+ end
1413
+
1414
+ module RSpec::Mocks::VerifyingDouble::SilentIO
1415
+ class << self
1416
+ def method_missing(*_arg0); end
1417
+ def respond_to?(*_arg0); end
1418
+ end
1419
+ end
1420
+
1421
+ class RSpec::Mocks::VerifyingDoubleNotDefinedError < ::StandardError; end
1422
+
1423
+ class RSpec::Mocks::VerifyingExistingClassNewMethodDouble < ::RSpec::Mocks::VerifyingExistingMethodDouble
1424
+ def with_signature; end
1425
+ end
1426
+
1427
+ class RSpec::Mocks::VerifyingExistingMethodDouble < ::RSpec::Mocks::VerifyingMethodDouble
1428
+ def initialize(object, method_name, proxy); end
1429
+
1430
+ def unimplemented?; end
1431
+ def with_signature; end
1432
+
1433
+ class << self
1434
+ def for(object, method_name, proxy); end
1435
+ end
1436
+ end
1437
+
1438
+ class RSpec::Mocks::VerifyingMessageExpectation < ::RSpec::Mocks::MessageExpectation
1439
+ def initialize(*args); end
1440
+
1441
+ def method_reference; end
1442
+ def method_reference=(_arg0); end
1443
+ def with(*args, &block); end
1444
+
1445
+ private
1446
+
1447
+ def validate_expected_arguments!; end
1448
+ end
1449
+
1450
+ class RSpec::Mocks::VerifyingMethodDouble < ::RSpec::Mocks::MethodDouble
1451
+ def initialize(object, method_name, proxy, method_reference); end
1452
+
1453
+ def add_expectation(*args, &block); end
1454
+ def add_stub(*args, &block); end
1455
+ def message_expectation_class; end
1456
+ def proxy_method_invoked(obj, *args, &block); end
1457
+ def validate_arguments!(actual_args); end
1458
+ end
1459
+
1460
+ class RSpec::Mocks::VerifyingPartialClassDoubleProxy < ::RSpec::Mocks::VerifyingPartialDoubleProxy
1461
+ include ::RSpec::Mocks::PartialClassDoubleProxyMethods
1462
+ end
1463
+
1464
+ class RSpec::Mocks::VerifyingPartialDoubleProxy < ::RSpec::Mocks::PartialDoubleProxy
1465
+ include ::RSpec::Mocks::VerifyingProxyMethods
1466
+
1467
+ def initialize(object, expectation_ordering, optional_callback_invocation_strategy = T.unsafe(nil)); end
1468
+
1469
+ def ensure_implemented(_method_name); end
1470
+ def method_reference; end
1471
+ end
1472
+
1473
+ class RSpec::Mocks::VerifyingProxy < ::RSpec::Mocks::TestDoubleProxy
1474
+ include ::RSpec::Mocks::VerifyingProxyMethods
1475
+
1476
+ def initialize(object, order_group, doubled_module, method_reference_class); end
1477
+
1478
+ def method_reference; end
1479
+ def validate_arguments!(method_name, args); end
1480
+ def visibility_for(method_name); end
1481
+ end
1482
+
1483
+ module RSpec::Mocks::VerifyingProxyMethods
1484
+ def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end
1485
+ def add_simple_stub(method_name, *args); end
1486
+ def add_stub(method_name, opts = T.unsafe(nil), &implementation); end
1487
+ def ensure_implemented(method_name); end
1488
+ def ensure_publicly_implemented(method_name, _object); end
1489
+ end
1490
+
1491
+ module RSpec::Mocks::Version; end
1492
+ RSpec::Mocks::Version::STRING = T.let(T.unsafe(nil), String)
1493
+ RSpec::SharedContext = RSpec::Core::SharedContext