workosv2 2.15.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 (242) hide show
  1. checksums.yaml +7 -0
  2. data/.github/CODEOWNERS +5 -0
  3. data/.github/pull_request_template.md +11 -0
  4. data/.github/renovate.json +5 -0
  5. data/.gitignore +49 -0
  6. data/.rspec +1 -0
  7. data/.rubocop.yml +24 -0
  8. data/.ruby-version +1 -0
  9. data/.semaphore/rubygems.yml +24 -0
  10. data/.semaphore/semaphore.yml +51 -0
  11. data/Gemfile +5 -0
  12. data/Gemfile.lock +126 -0
  13. data/Gemfile.lock.old +127 -0
  14. data/LICENSE +21 -0
  15. data/README.md +53 -0
  16. data/bin/build +3 -0
  17. data/bin/console +3 -0
  18. data/bin/docs +5 -0
  19. data/bin/publish +3 -0
  20. data/bin/tapioca +29 -0
  21. data/codecov.yml +12 -0
  22. data/docs/WorkOS/APIError.html +160 -0
  23. data/docs/WorkOS/AuditLog.html +235 -0
  24. data/docs/WorkOS/AuditTrail.html +235 -0
  25. data/docs/WorkOS/AuthenticationError.html +160 -0
  26. data/docs/WorkOS/Base.html +287 -0
  27. data/docs/WorkOS/Client.html +504 -0
  28. data/docs/WorkOS/InvalidRequestError.html +160 -0
  29. data/docs/WorkOS/Profile.html +788 -0
  30. data/docs/WorkOS/RequestError.html +135 -0
  31. data/docs/WorkOS/SSO.html +691 -0
  32. data/docs/WorkOS/Types/ProfileStruct.html +135 -0
  33. data/docs/WorkOS/Types/Provider.html +135 -0
  34. data/docs/WorkOS/Types.html +128 -0
  35. data/docs/WorkOS/WorkOSError.html +447 -0
  36. data/docs/WorkOS.html +324 -0
  37. data/docs/class_list.html +51 -0
  38. data/docs/css/common.css +1 -0
  39. data/docs/css/full_list.css +58 -0
  40. data/docs/css/style.css +496 -0
  41. data/docs/file.README.html +252 -0
  42. data/docs/file_list.html +56 -0
  43. data/docs/frames.html +17 -0
  44. data/docs/index.html +250 -0
  45. data/docs/js/app.js +314 -0
  46. data/docs/js/full_list.js +216 -0
  47. data/docs/js/jquery.js +4 -0
  48. data/docs/method_list.html +267 -0
  49. data/docs/top-level-namespace.html +110 -0
  50. data/lib/workosv2/audit_log_export.rb +55 -0
  51. data/lib/workosv2/audit_logs.rb +114 -0
  52. data/lib/workosv2/audit_trail.rb +111 -0
  53. data/lib/workosv2/challenge.rb +55 -0
  54. data/lib/workosv2/client.rb +186 -0
  55. data/lib/workosv2/configuration.rb +17 -0
  56. data/lib/workosv2/connection.rb +66 -0
  57. data/lib/workosv2/deprecated_hash_wrapper.rb +76 -0
  58. data/lib/workosv2/directory.rb +65 -0
  59. data/lib/workosv2/directory_group.rb +68 -0
  60. data/lib/workosv2/directory_sync.rb +218 -0
  61. data/lib/workosv2/directory_user.rb +97 -0
  62. data/lib/workosv2/errors.rb +81 -0
  63. data/lib/workosv2/event.rb +51 -0
  64. data/lib/workosv2/events.rb +52 -0
  65. data/lib/workosv2/factor.rb +54 -0
  66. data/lib/workosv2/hash_provider.rb +19 -0
  67. data/lib/workosv2/mfa.rb +178 -0
  68. data/lib/workosv2/organization.rb +57 -0
  69. data/lib/workosv2/organizations.rb +188 -0
  70. data/lib/workosv2/passwordless.rb +85 -0
  71. data/lib/workosv2/portal.rb +66 -0
  72. data/lib/workosv2/profile.rb +76 -0
  73. data/lib/workosv2/profile_and_token.rb +29 -0
  74. data/lib/workosv2/sso.rb +297 -0
  75. data/lib/workosv2/types/audit_log_export_struct.rb +17 -0
  76. data/lib/workosv2/types/challenge_struct.rb +18 -0
  77. data/lib/workosv2/types/connection_struct.rb +20 -0
  78. data/lib/workosv2/types/directory_group_struct.rb +19 -0
  79. data/lib/workosv2/types/directory_struct.rb +19 -0
  80. data/lib/workosv2/types/directory_user_struct.rb +26 -0
  81. data/lib/workosv2/types/event_struct.rb +15 -0
  82. data/lib/workosv2/types/factor_struct.rb +18 -0
  83. data/lib/workosv2/types/intent_enum.rb +17 -0
  84. data/lib/workosv2/types/list_struct.rb +13 -0
  85. data/lib/workosv2/types/organization_struct.rb +17 -0
  86. data/lib/workosv2/types/passwordless_session_struct.rb +17 -0
  87. data/lib/workosv2/types/profile_struct.rb +21 -0
  88. data/lib/workosv2/types/provider_enum.rb +15 -0
  89. data/lib/workosv2/types/verify_challenge_struct.rb +13 -0
  90. data/lib/workosv2/types/webhook_struct.rb +15 -0
  91. data/lib/workosv2/types.rb +25 -0
  92. data/lib/workosv2/verify_challenge.rb +39 -0
  93. data/lib/workosv2/version.rb +6 -0
  94. data/lib/workosv2/webhook.rb +51 -0
  95. data/lib/workosv2/webhooks.rb +217 -0
  96. data/lib/workosv2.rb +79 -0
  97. data/sorbet/config +2 -0
  98. data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
  99. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  100. data/sorbet/rbi/gems/codecov@0.2.12.rbi +55 -0
  101. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  102. data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
  103. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
  104. data/sorbet/rbi/gems/docile@1.3.5.rbi +54 -0
  105. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
  106. data/sorbet/rbi/gems/json@2.5.1.rbi +109 -0
  107. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  108. data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
  109. data/sorbet/rbi/gems/parser@3.0.1.0.rbi +1187 -0
  110. data/sorbet/rbi/gems/pry@0.14.2.rbi +8 -0
  111. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +146 -0
  112. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
  113. data/sorbet/rbi/gems/rake@13.0.3.rbi +807 -0
  114. data/sorbet/rbi/gems/rbi@0.0.16.rbi +2118 -0
  115. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1117 -0
  116. data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
  117. data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +2467 -0
  118. data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +1569 -0
  119. data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +1493 -0
  120. data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +511 -0
  121. data/sorbet/rbi/gems/rspec@3.9.0.rbi +38 -0
  122. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +1881 -0
  123. data/sorbet/rbi/gems/rubocop@0.93.1.rbi +11497 -0
  124. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  125. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  126. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  127. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +8 -0
  128. data/sorbet/rbi/gems/spoom@1.1.15.rbi +1549 -0
  129. data/sorbet/rbi/gems/tapioca@0.7.3.rbi +1718 -0
  130. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  131. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +22 -0
  132. data/sorbet/rbi/gems/unparser@0.6.2.rbi +8 -0
  133. data/sorbet/rbi/gems/vcr@5.0.0.rbi +699 -0
  134. data/sorbet/rbi/gems/webmock@3.12.2.rbi +662 -0
  135. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +268 -0
  136. data/sorbet/rbi/gems/yard@0.9.26.rbi +4048 -0
  137. data/sorbet/tapioca/config.yml +13 -0
  138. data/sorbet/tapioca/require.rb +4 -0
  139. data/spec/lib/workos/audit_logs_spec.rb +151 -0
  140. data/spec/lib/workos/audit_trail_spec.rb +146 -0
  141. data/spec/lib/workos/configuration_spec.rb +61 -0
  142. data/spec/lib/workos/directory_sync_spec.rb +492 -0
  143. data/spec/lib/workos/directory_user_spec.rb +36 -0
  144. data/spec/lib/workos/event_spec.rb +88 -0
  145. data/spec/lib/workos/mfa_spec.rb +281 -0
  146. data/spec/lib/workos/organizations_spec.rb +257 -0
  147. data/spec/lib/workos/passwordless_spec.rb +77 -0
  148. data/spec/lib/workos/portal_spec.rb +87 -0
  149. data/spec/lib/workos/sso_spec.rb +650 -0
  150. data/spec/lib/workos/webhooks_spec.rb +236 -0
  151. data/spec/spec_helper.rb +56 -0
  152. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml +59 -0
  153. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event_custom_idempotency_key.yml +60 -0
  154. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event_invalid.yml +59 -0
  155. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_export.yml +76 -0
  156. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_export_with_filters.yml +77 -0
  157. data/spec/support/fixtures/vcr_cassettes/audit_logs/get_export.yml +73 -0
  158. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event.yml +65 -0
  159. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event_custom_idempotency_key.yml +67 -0
  160. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event_invalid.yml +68 -0
  161. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_and_payload.yml +131 -0
  162. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_different_payload.yml +134 -0
  163. data/spec/support/fixtures/vcr_cassettes/audit_trail/get_events.yml +61 -0
  164. data/spec/support/fixtures/vcr_cassettes/base/execute_request_unauthenticated.yml +66 -0
  165. data/spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml +72 -0
  166. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_directory_with_invalid_id.yml +83 -0
  167. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_directory_with_valid_id.yml +84 -0
  168. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_group.yml +80 -0
  169. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_group_with_invalid_id.yml +62 -0
  170. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user.yml +83 -0
  171. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user_with_invalid_id.yml +62 -0
  172. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_after.yml +87 -0
  173. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_before.yml +89 -0
  174. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_domain.yml +84 -0
  175. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml +85 -0
  176. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml +93 -0
  177. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +85 -0
  178. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml +90 -0
  179. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml +90 -0
  180. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml +90 -0
  181. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml +84 -0
  182. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_no_options.yml +84 -0
  183. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml +82 -0
  184. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml +186 -0
  185. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml +88 -0
  186. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml +194 -0
  187. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml +186 -0
  188. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml +189 -0
  189. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_no_options.yml +74 -0
  190. data/spec/support/fixtures/vcr_cassettes/events/list_events_with_after.yml +80 -0
  191. data/spec/support/fixtures/vcr_cassettes/events/list_events_with_event.yml +80 -0
  192. data/spec/support/fixtures/vcr_cassettes/events/list_events_with_no_options.yml +80 -0
  193. data/spec/support/fixtures/vcr_cassettes/events/list_events_with_range.yml +80 -0
  194. data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_generic_valid.yml +82 -0
  195. data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_sms_valid.yml +82 -0
  196. data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_totp_valid.yml +82 -0
  197. data/spec/support/fixtures/vcr_cassettes/mfa/delete_factor.yml +80 -0
  198. data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_generic_valid.yml +82 -0
  199. data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_sms_valid.yml +82 -0
  200. data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_totp_valid.yml +82 -0
  201. data/spec/support/fixtures/vcr_cassettes/mfa/get_factor_invalid.yml +82 -0
  202. data/spec/support/fixtures/vcr_cassettes/mfa/get_factor_valid.yml +82 -0
  203. data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_expired.yml +84 -0
  204. data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_invalid.yml +84 -0
  205. data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid.yml +82 -0
  206. data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid_is_false.yml +82 -0
  207. data/spec/support/fixtures/vcr_cassettes/organization/create.yml +84 -0
  208. data/spec/support/fixtures/vcr_cassettes/organization/create_invalid.yml +72 -0
  209. data/spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_different_payload.yml +155 -0
  210. data/spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_payload.yml +154 -0
  211. data/spec/support/fixtures/vcr_cassettes/organization/create_with_idempotency_key.yml +79 -0
  212. data/spec/support/fixtures/vcr_cassettes/organization/delete.yml +72 -0
  213. data/spec/support/fixtures/vcr_cassettes/organization/delete_invalid.yml +72 -0
  214. data/spec/support/fixtures/vcr_cassettes/organization/get.yml +84 -0
  215. data/spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml +72 -0
  216. data/spec/support/fixtures/vcr_cassettes/organization/list.yml +87 -0
  217. data/spec/support/fixtures/vcr_cassettes/organization/update.yml +84 -0
  218. data/spec/support/fixtures/vcr_cassettes/passwordless/create_session.yml +72 -0
  219. data/spec/support/fixtures/vcr_cassettes/passwordless/create_session_invalid.yml +73 -0
  220. data/spec/support/fixtures/vcr_cassettes/passwordless/send_session.yml +72 -0
  221. data/spec/support/fixtures/vcr_cassettes/passwordless/send_session_invalid.yml +73 -0
  222. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_audit_logs.yml +72 -0
  223. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml +72 -0
  224. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_invalid.yml +72 -0
  225. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_sso.yml +72 -0
  226. data/spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_invalid_id.yml +72 -0
  227. data/spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_valid_id.yml +70 -0
  228. data/spec/support/fixtures/vcr_cassettes/sso/get_connection_with_invalid_id.yml +72 -0
  229. data/spec/support/fixtures/vcr_cassettes/sso/get_connection_with_valid_id.yml +86 -0
  230. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml +83 -0
  231. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml +86 -0
  232. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml +90 -0
  233. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_domain.yml +86 -0
  234. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml +83 -0
  235. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml +89 -0
  236. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml +86 -0
  237. data/spec/support/fixtures/vcr_cassettes/sso/profile.yml +74 -0
  238. data/spec/support/profile.txt +1 -0
  239. data/spec/support/shared_examples/client_spec.rb +30 -0
  240. data/spec/support/webhook_payload.txt +1 -0
  241. data/workosv2.gemspec +38 -0
  242. metadata +531 -0
@@ -0,0 +1,1493 @@
1
+ # typed: true
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`.
6
+
7
+ module RSpec
8
+ extend ::RSpec::Support::Warnings
9
+ extend ::RSpec::Core::Warnings
10
+
11
+ class << self
12
+ def clear_examples; end
13
+ def configuration; end
14
+ def configuration=(_arg0); end
15
+ def configure; end
16
+ def const_missing(name); end
17
+ def context(*args, &example_group_block); end
18
+ def current_example; end
19
+ def current_example=(example); end
20
+ def describe(*args, &example_group_block); end
21
+ def example_group(*args, &example_group_block); end
22
+ def fcontext(*args, &example_group_block); end
23
+ def fdescribe(*args, &example_group_block); end
24
+ def reset; end
25
+ def shared_context(name, *args, &block); end
26
+ def shared_examples(name, *args, &block); end
27
+ def shared_examples_for(name, *args, &block); end
28
+ def world; end
29
+ def world=(_arg0); end
30
+ def xcontext(*args, &example_group_block); end
31
+ def xdescribe(*args, &example_group_block); end
32
+ end
33
+ end
34
+
35
+ RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
36
+
37
+ module RSpec::Mocks
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
49
+ 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
56
+ end
57
+
58
+ class RSpec::Mocks::AndReturnImplementation
59
+ def initialize(values_to_return); end
60
+
61
+ def call(*_args_to_ignore, &_block); end
62
+ 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
77
+ 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
85
+ end
86
+
87
+ module RSpec::Mocks::AnyInstance
88
+ class << self
89
+ def error_generator; end
90
+ end
91
+ 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
111
+ 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
134
+ 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
141
+ 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
153
+ 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
163
+ 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
173
+ 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
191
+ 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
198
+ 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
216
+ end
217
+
218
+ class RSpec::Mocks::AnyInstance::Recorder
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
257
+ 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
267
+ 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
279
+ 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
286
+ 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
293
+ 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
306
+ 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
328
+ end
329
+
330
+ class RSpec::Mocks::ArgumentMatchers::AnyArgMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
331
+ def ===(_other); end
332
+ def description; end
333
+ 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
339
+ 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
352
+ end
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
363
+ end
364
+
365
+ class RSpec::Mocks::ArgumentMatchers::BooleanMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
366
+ def ===(value); end
367
+ def description; end
368
+ 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
377
+ end
378
+
379
+ class RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher < ::RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
380
+ def ===(actual); end
381
+ def description; end
382
+ end
383
+
384
+ class RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher < ::RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
385
+ def ===(actual); end
386
+ def description; end
387
+ end
388
+
389
+ class RSpec::Mocks::ArgumentMatchers::InstanceOf
390
+ def initialize(klass); end
391
+
392
+ def ===(actual); end
393
+ def description; end
394
+ end
395
+
396
+ class RSpec::Mocks::ArgumentMatchers::KindOf
397
+ def initialize(klass); end
398
+
399
+ def ===(actual); end
400
+ def description; end
401
+ end
402
+
403
+ class RSpec::Mocks::ArgumentMatchers::NoArgsMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
404
+ def description; end
405
+ end
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
413
+ end
414
+
415
+ class RSpec::Mocks::CallbackInvocationStrategy
416
+ def call(doubled_module); end
417
+ 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
427
+ end
428
+
429
+ class RSpec::Mocks::ClassVerifyingDouble < ::Module
430
+ include ::RSpec::Mocks::TestDouble
431
+ include ::RSpec::Mocks::VerifyingDouble
432
+ include ::RSpec::Mocks::ObjectVerifyingDoubleMethods
433
+ end
434
+
435
+ class RSpec::Mocks::Configuration
436
+ def initialize; 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
459
+ end
460
+
461
+ class RSpec::Mocks::Constant
462
+ extend ::RSpec::Support::RecursiveConstMethods
463
+
464
+ def initialize(name); end
465
+
466
+ def hidden=(_arg0); end
467
+ def hidden?; end
468
+ def inspect; end
469
+ def mutated?; end
470
+ def name; end
471
+ def original_value; end
472
+ def original_value=(_arg0); end
473
+ def previously_defined=(_arg0); end
474
+ def previously_defined?; end
475
+ def stubbed=(_arg0); end
476
+ def stubbed?; end
477
+ def to_s; end
478
+ def valid_name=(_arg0); end
479
+ def valid_name?; end
480
+
481
+ class << self
482
+ def original(name); end
483
+ def unmutated(name); end
484
+ end
485
+ end
486
+
487
+ class RSpec::Mocks::ConstantMutator
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
496
+ end
497
+
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
+
503
+ def full_constant_name; end
504
+ def idempotently_reset; end
505
+ def original_value; end
506
+ def to_constant; end
507
+ end
508
+
509
+ class RSpec::Mocks::ConstantMutator::ConstantHider < ::RSpec::Mocks::ConstantMutator::BaseMutator
510
+ def mutate; end
511
+ def reset; end
512
+ def to_constant; end
513
+ end
514
+
515
+ class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < ::RSpec::Mocks::ConstantMutator::BaseMutator
516
+ def initialize(*args); end
517
+
518
+ def mutate; end
519
+ def reset; end
520
+ def should_transfer_nested_constants?; end
521
+ def to_constant; end
522
+ def transfer_nested_constants; end
523
+ def verify_constants_to_transfer!; end
524
+ end
525
+
526
+ class RSpec::Mocks::ConstantMutator::UndefinedConstantSetter < ::RSpec::Mocks::ConstantMutator::BaseMutator
527
+ def mutate; end
528
+ def reset; end
529
+ def to_constant; end
530
+
531
+ private
532
+
533
+ def name_for(parent, name); end
534
+ 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
544
+ def target; end
545
+ def when_loaded; end
546
+ end
547
+
548
+ class RSpec::Mocks::Double
549
+ include ::RSpec::Mocks::TestDouble
550
+ end
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
637
+ end
638
+
639
+ module RSpec::Mocks::ExampleMethods::ExpectHost
640
+ def expect(target); end
641
+ 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
651
+ end
652
+
653
+ class RSpec::Mocks::ExpectationTarget < ::RSpec::Mocks::TargetBase
654
+ include ::RSpec::Mocks::ExpectationTargetMethods
655
+ end
656
+
657
+ module RSpec::Mocks::ExpectationTargetMethods
658
+ include ::RSpec::Mocks::TargetDelegationInstanceMethods
659
+ extend ::RSpec::Mocks::TargetDelegationClassMethods
660
+
661
+ def expression; end
662
+ def not_to(matcher, &block); end
663
+ def to(matcher, &block); end
664
+ def to_not(matcher, &block); end
665
+ 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
683
+ end
684
+
685
+ class RSpec::Mocks::InstanceMethodReference < ::RSpec::Mocks::MethodReference
686
+ private
687
+
688
+ def find_method(mod); end
689
+ def method_defined?(mod); end
690
+ def method_implemented?(mod); end
691
+ def visibility_from(mod); end
692
+ 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
708
+ end
709
+
710
+ class RSpec::Mocks::InstanceVerifyingDouble
711
+ include ::RSpec::Mocks::TestDouble
712
+ include ::RSpec::Mocks::VerifyingDouble
713
+
714
+ def __build_mock_proxy(order_group); end
715
+ end
716
+
717
+ class RSpec::Mocks::MarshalExtension
718
+ class << self
719
+ def patch!; end
720
+ def unpatch!; end
721
+ end
722
+ end
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
732
+ 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
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
+
780
+ class RSpec::Mocks::Matchers::Receive
781
+ include ::RSpec::Mocks::Matchers::Matcher
782
+
783
+ def initialize(message, block); end
784
+
785
+ def and_call_original(*args, &block); end
786
+ def and_raise(*args, &block); end
787
+ def and_return(*args, &block); end
788
+ def and_throw(*args, &block); end
789
+ def and_wrap_original(*args, &block); end
790
+ def and_yield(*args, &block); end
791
+ def at_least(*args, &block); end
792
+ def at_most(*args, &block); end
793
+ def description; end
794
+ def does_not_match?(subject, &block); end
795
+ def exactly(*args, &block); end
796
+ def matches?(subject, &block); end
797
+ def name; end
798
+ def never(*args, &block); end
799
+ def once(*args, &block); end
800
+ def ordered(*args, &block); end
801
+ def setup_allowance(subject, &block); end
802
+ def setup_any_instance_allowance(subject, &block); end
803
+ def setup_any_instance_expectation(subject, &block); end
804
+ def setup_any_instance_negative_expectation(subject, &block); end
805
+ def setup_expectation(subject, &block); end
806
+ def setup_negative_expectation(subject, &block); end
807
+ def thrice(*args, &block); end
808
+ def time(*args, &block); end
809
+ def times(*args, &block); end
810
+ def twice(*args, &block); end
811
+ def with(*args, &block); end
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
821
+ end
822
+
823
+ class RSpec::Mocks::Matchers::Receive::DefaultDescribable
824
+ def initialize(message); end
825
+
826
+ def description_for(verb); end
827
+ end
828
+
829
+ class RSpec::Mocks::Matchers::ReceiveMessageChain
830
+ include ::RSpec::Mocks::Matchers::Matcher
831
+
832
+ def initialize(chain, &block); end
833
+
834
+ def and_call_original(*args, &block); end
835
+ def and_raise(*args, &block); end
836
+ def and_return(*args, &block); end
837
+ def and_throw(*args, &block); end
838
+ def and_yield(*args, &block); end
839
+ def description; end
840
+ def does_not_match?(*_args); end
841
+ def matches?(subject, &block); end
842
+ def name; end
843
+ def setup_allowance(subject, &block); end
844
+ def setup_any_instance_allowance(subject, &block); end
845
+ def setup_any_instance_expectation(subject, &block); end
846
+ def setup_expectation(subject, &block); end
847
+ def setup_negative_expectation(*_args); end
848
+ def with(*args, &block); end
849
+
850
+ private
851
+
852
+ def formatted_chain; end
853
+ def replay_customizations(chain); end
854
+ end
855
+
856
+ class RSpec::Mocks::Matchers::ReceiveMessages
857
+ include ::RSpec::Mocks::Matchers::Matcher
858
+
859
+ def initialize(message_return_value_hash); end
860
+
861
+ def description; end
862
+ def does_not_match?(_subject); end
863
+ def matches?(subject); end
864
+ def name; end
865
+ def setup_allowance(subject); end
866
+ def setup_any_instance_allowance(subject); end
867
+ def setup_any_instance_expectation(subject); end
868
+ def setup_expectation(subject); end
869
+ def setup_negative_expectation(_subject); end
870
+ def warn_about_block; end
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
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