2022-01-20 18:14:54 +00:00
|
|
|
# typed: true
|
|
|
|
|
2020-11-17 04:49:54 +01:00
|
|
|
# DO NOT EDIT MANUALLY
|
|
|
|
# This is an autogenerated file for types exported from the `rspec-sorbet` gem.
|
2021-09-17 19:28:50 +01:00
|
|
|
# Please instead update this file by running `bin/tapioca gem rspec-sorbet`.
|
2020-11-17 04:49:54 +01:00
|
|
|
|
2021-09-10 21:21:17 +01:00
|
|
|
module RSpec
|
|
|
|
extend ::RSpec::Support::Warnings
|
|
|
|
extend ::RSpec::Core::Warnings
|
|
|
|
|
|
|
|
class << self
|
|
|
|
def clear_examples; end
|
|
|
|
def configuration; end
|
|
|
|
def configuration=(_arg0); end
|
|
|
|
def configure; end
|
|
|
|
def const_missing(name); end
|
|
|
|
def context(*args, &example_group_block); end
|
|
|
|
def current_example; end
|
|
|
|
def current_example=(example); end
|
2022-05-02 20:59:59 +01:00
|
|
|
def current_scope; end
|
|
|
|
def current_scope=(scope); end
|
2021-09-10 21:21:17 +01:00
|
|
|
def describe(*args, &example_group_block); end
|
|
|
|
def example_group(*args, &example_group_block); end
|
|
|
|
def fcontext(*args, &example_group_block); end
|
|
|
|
def fdescribe(*args, &example_group_block); end
|
|
|
|
def reset; end
|
|
|
|
def shared_context(name, *args, &block); end
|
|
|
|
def shared_examples(name, *args, &block); end
|
|
|
|
def shared_examples_for(name, *args, &block); end
|
|
|
|
def world; end
|
|
|
|
def world=(_arg0); end
|
|
|
|
def xcontext(*args, &example_group_block); end
|
|
|
|
def xdescribe(*args, &example_group_block); end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
|
|
|
RSpec::SharedContext = RSpec::Core::SharedContext
|
|
|
|
|
|
|
|
module RSpec::Sorbet
|
|
|
|
extend ::RSpec::Sorbet::Doubles
|
|
|
|
end
|
|
|
|
|
|
|
|
module RSpec::Sorbet::Doubles
|
2023-03-24 19:16:45 +00:00
|
|
|
requires_ancestor { Kernel }
|
|
|
|
|
|
|
|
sig { void }
|
2021-09-10 21:21:17 +01:00
|
|
|
def allow_doubles!; end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
|
|
|
def allow_instance_doubles!(*args, &blk); end
|
|
|
|
|
|
|
|
sig { params(clear_existing: T::Boolean).void }
|
|
|
|
def reset!(clear_existing: T.unsafe(nil)); end
|
2021-09-10 21:21:17 +01:00
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void }
|
2022-09-08 09:18:00 +00:00
|
|
|
def call_validation_error_handler(signature, opts); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
|
|
|
sig { returns(T.nilable(T::Boolean)) }
|
|
|
|
def configured; end
|
|
|
|
|
|
|
|
def configured=(_arg0); end
|
|
|
|
|
|
|
|
sig { params(message: ::String).returns(T::Boolean) }
|
2021-09-10 21:21:17 +01:00
|
|
|
def double_message_with_ellipsis?(message); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
|
|
|
sig { returns(T.nilable(T.proc.params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void)) }
|
|
|
|
def existing_call_validation_error_handler; end
|
|
|
|
|
|
|
|
def existing_call_validation_error_handler=(_arg0); end
|
|
|
|
|
|
|
|
sig { returns(T.nilable(T.proc.params(signature: ::Exception).void)) }
|
|
|
|
def existing_inline_type_error_handler; end
|
|
|
|
|
|
|
|
def existing_inline_type_error_handler=(_arg0); end
|
|
|
|
|
|
|
|
sig { params(signature: T.untyped, opts: T.untyped).void }
|
2022-09-08 09:18:00 +00:00
|
|
|
def handle_call_validation_error(signature, opts); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
|
|
|
sig { params(error: ::Exception).void }
|
2021-09-10 21:21:17 +01:00
|
|
|
def inline_type_error_handler(error); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
|
|
|
sig { params(message: ::String).returns(T::Boolean) }
|
2021-09-10 21:21:17 +01:00
|
|
|
def typed_array_message?(message); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
|
|
|
sig { params(message: ::String).returns(T::Boolean) }
|
2021-09-10 21:21:17 +01:00
|
|
|
def unable_to_check_type_for_message?(message); end
|
|
|
|
end
|
|
|
|
|
|
|
|
RSpec::Sorbet::Doubles::INLINE_DOUBLE_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
|
|
RSpec::Sorbet::Doubles::TYPED_ARRAY_MESSAGE = T.let(T.unsafe(nil), Regexp)
|
|
|
|
RSpec::Sorbet::Doubles::VERIFYING_DOUBLE_OR_DOUBLE = T.let(T.unsafe(nil), Regexp)
|