sorbet/rbi/gems/rspec-support.rbi in sord-0.7.1 vs sorbet/rbi/gems/rspec-support.rbi in sord-0.8.0

- old
+ new

@@ -1,9 +1,9 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: strong +# typed: true # # If you would like to make changes to this file, great! Please create the gem's shim here: # # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-support/all/rspec-support.rbi # @@ -12,15 +12,20 @@ extend RSpec::Support::Warnings end module RSpec::Support def self.class_of(object); end def self.define_optimized_require_for_rspec(lib, &require_relative); end + def self.deregister_matcher_definition(&block); end def self.failure_notifier; end def self.failure_notifier=(callable); end + def self.is_a_matcher?(object); end + def self.matcher_definitions; end def self.method_handle_for(object, method_name); end def self.notify_failure(failure, options = nil); end + def self.register_matcher_definition(&block); end def self.require_rspec_support(f); end + def self.rspec_description_for_object(object); end def self.thread_local_data; end def self.warning_notifier; end def self.warning_notifier=(arg0); end def self.with_failure_notifier(callable); end end @@ -121,6 +126,143 @@ def constants_defined_on(mod); end def get_const_defined_on(mod, const_name); end def normalize_const_name(const_name); end def recursive_const_defined?(const_name); end def recursive_const_get(const_name); end +end +class RSpec::Support::ObjectFormatter + def format(object); end + def initialize(max_formatted_output_length = nil); end + def max_formatted_output_length; end + def max_formatted_output_length=(arg0); end + def prepare_array(array); end + def prepare_element(element); end + def prepare_for_inspection(object); end + def prepare_hash(input_hash); end + def recursive_structure?(object); end + def self.default_instance; end + def self.format(object); end + def self.prepare_for_inspection(object); end + def sort_hash_keys(input_hash); end + def truncate_string(str, start_index, end_index); end + def with_entering_structure(structure); end +end +class RSpec::Support::ObjectFormatter::InspectableItem < Struct + def inspect; end + def pretty_print(pp); end + def self.[](*arg0); end + def self.inspect; end + def self.members; end + def self.new(*arg0); end + def text; end + def text=(_); end +end +class RSpec::Support::ObjectFormatter::BaseInspector < Struct + def formatter; end + def formatter=(_); end + def inspect; end + def object; end + def object=(_); end + def pretty_print(pp); end + def self.[](*arg0); end + def self.can_inspect?(_object); end + def self.inspect; end + def self.members; end + def self.new(*arg0); end +end +class RSpec::Support::ObjectFormatter::TimeInspector < RSpec::Support::ObjectFormatter::BaseInspector + def inspect; end + def self.can_inspect?(object); end +end +class RSpec::Support::ObjectFormatter::DateTimeInspector < RSpec::Support::ObjectFormatter::BaseInspector + def inspect; end + def self.can_inspect?(object); end +end +class RSpec::Support::ObjectFormatter::BigDecimalInspector < RSpec::Support::ObjectFormatter::BaseInspector + def inspect; end + def self.can_inspect?(object); end +end +class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < RSpec::Support::ObjectFormatter::BaseInspector + def inspect; end + def self.can_inspect?(object); end +end +class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector + def inspect; end + def klass; end + def native_object_id; end + def self.can_inspect?(object); end +end +class RSpec::Support::ObjectFormatter::DelegatorInspector < RSpec::Support::ObjectFormatter::BaseInspector + def inspect; end + def self.can_inspect?(object); end +end +class RSpec::Support::ObjectFormatter::InspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector + def inspect; end + def self.can_inspect?(object); end +end +module RSpec::Support::FuzzyMatcher + def self.arrays_match?(expected_list, actual_list); end + def self.hashes_match?(expected_hash, actual_hash); end + def self.values_match?(expected, actual); end +end +class RSpec::Support::MethodSignature + def arbitrary_kw_args?; end + def classify_arity(arity = nil); end + def classify_parameters; end + def could_contain_kw_args?(args); end + def description; end + def has_kw_args_in?(args); end + def initialize(method); end + def invalid_kw_args_from(given_kw_args); end + def max_non_kw_args; end + def min_non_kw_args; end + def missing_kw_args_from(given_kw_args); end + def non_kw_args_arity_description; end + def optional_kw_args; end + def required_kw_args; end + def unlimited_args?; end + def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = nil); end +end +class RSpec::Support::MethodSignatureExpectation + def empty?; end + def expect_arbitrary_keywords; end + def expect_arbitrary_keywords=(arg0); end + def expect_unlimited_arguments; end + def expect_unlimited_arguments=(arg0); end + def initialize; end + def keywords; end + def keywords=(values); end + def max_count; end + def max_count=(number); end + def min_count; end + def min_count=(number); end +end +class RSpec::Support::BlockSignature < RSpec::Support::MethodSignature + def classify_parameters; end +end +class RSpec::Support::MethodSignatureVerifier + def arbitrary_kw_args?; end + def error_message; end + def initialize(signature, args = nil); end + def invalid_kw_args; end + def kw_args; end + def max_non_kw_args; end + def min_non_kw_args; end + def missing_kw_args; end + def non_kw_args; end + def split_args(*args); end + def unlimited_args?; end + def valid?; end + def valid_non_kw_args?; end + def with_expectation(expectation); end +end +class RSpec::Support::LooseSignatureVerifier < RSpec::Support::MethodSignatureVerifier + def split_args(*args); end +end +class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher + def has_kw_args_in?(args); end + def initialize(signature); end + def invalid_kw_args_from(_kw_args); end + def missing_kw_args_from(_kw_args); end + def non_kw_args_arity_description; end + def valid_non_kw_args?(*args); end end