Update RBI files for rspec.
This commit is contained in:
parent
0df24cd876
commit
9924a18d77
@ -17,6 +17,8 @@ module RSpec
|
||||
def context(*args, &example_group_block); end
|
||||
def current_example; end
|
||||
def current_example=(example); end
|
||||
def current_scope; end
|
||||
def current_scope=(scope); end
|
||||
def describe(*args, &example_group_block); end
|
||||
def example_group(*args, &example_group_block); end
|
||||
def fcontext(*args, &example_group_block); end
|
||||
@ -1640,6 +1642,8 @@ module RSpec::Core::MemoizedHelpers
|
||||
|
||||
def __init_memoized; end
|
||||
def __memoized; end
|
||||
def enforce_value_expectation(matcher, method_name); end
|
||||
def matcher_supports_value_expectations?(matcher); end
|
||||
|
||||
class << self
|
||||
def define_helpers_on(example_group); end
|
||||
@ -2037,6 +2041,10 @@ end
|
||||
|
||||
RSpec::Core::Ordering::Random::MAX_32_BIT = T.let(T.unsafe(nil), Integer)
|
||||
|
||||
class RSpec::Core::Ordering::RecentlyModified
|
||||
def order(list); end
|
||||
end
|
||||
|
||||
class RSpec::Core::Ordering::Registry
|
||||
def initialize(configuration); end
|
||||
|
||||
@ -2470,6 +2478,8 @@ class RSpec::Core::World
|
||||
def report_filter_message(message); end
|
||||
def reporter; end
|
||||
def reset; end
|
||||
def rspec_is_quitting; end
|
||||
def rspec_is_quitting=(_arg0); end
|
||||
def shared_example_group_registry; end
|
||||
def source_from_file(path); end
|
||||
def syntax_highlighter; end
|
||||
@ -17,6 +17,8 @@ module RSpec
|
||||
def context(*args, &example_group_block); end
|
||||
def current_example; end
|
||||
def current_example=(example); end
|
||||
def current_scope; end
|
||||
def current_scope=(scope); end
|
||||
def describe(*args, &example_group_block); end
|
||||
def example_group(*args, &example_group_block); end
|
||||
def fcontext(*args, &example_group_block); end
|
||||
@ -330,6 +332,16 @@ module RSpec::Expectations::Syntax
|
||||
end
|
||||
end
|
||||
|
||||
class RSpec::Expectations::ValueExpectationTarget < ::RSpec::Expectations::ExpectationTarget
|
||||
def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
||||
def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
|
||||
|
||||
private
|
||||
|
||||
def enforce_value_expectation(matcher); end
|
||||
def supports_value_expectations?(matcher); end
|
||||
end
|
||||
|
||||
module RSpec::Expectations::Version; end
|
||||
RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String)
|
||||
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
||||
@ -521,6 +533,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher
|
||||
def present_ivars; end
|
||||
def rescued_exception; end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -719,6 +732,7 @@ class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
||||
def from(value); end
|
||||
def matches?(event_proc); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
def to(value); end
|
||||
|
||||
private
|
||||
@ -746,6 +760,8 @@ class RSpec::Matchers::BuiltIn::ChangeDetails
|
||||
def message_notation(receiver, message); end
|
||||
end
|
||||
|
||||
module RSpec::Matchers::BuiltIn::ChangeDetails::UNDEFINED; end
|
||||
|
||||
class RSpec::Matchers::BuiltIn::ChangeFromValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange
|
||||
def initialize(change_details, expected_before); end
|
||||
|
||||
@ -766,6 +782,7 @@ class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::B
|
||||
def failure_message; end
|
||||
def matches?(event_proc); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -795,6 +812,7 @@ class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatch
|
||||
def matcher_1; end
|
||||
def matcher_2; end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
protected
|
||||
|
||||
@ -811,6 +829,7 @@ class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatch
|
||||
def matcher_2_matches?; end
|
||||
def matcher_is_diffable?(matcher); end
|
||||
def matcher_supports_block_expectations?(matcher); end
|
||||
def matcher_supports_value_expectations?(matcher); end
|
||||
end
|
||||
|
||||
class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound
|
||||
@ -1180,6 +1199,7 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
||||
def failure_message_when_negated; end
|
||||
def matches?(block); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
def to_stderr; end
|
||||
def to_stderr_from_any_process; end
|
||||
def to_stdout; end
|
||||
@ -1209,6 +1229,7 @@ class RSpec::Matchers::BuiltIn::RaiseError
|
||||
def failure_message_when_negated; end
|
||||
def matches?(given_proc, negative_expectation = T.unsafe(nil), &block); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
def with_message(expected_message); end
|
||||
|
||||
private
|
||||
@ -1306,6 +1327,7 @@ class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltI
|
||||
def failure_message; end
|
||||
def matches?(event_proc); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -1352,6 +1374,7 @@ class RSpec::Matchers::BuiltIn::ThrowSymbol
|
||||
def failure_message_when_negated; end
|
||||
def matches?(given_proc); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -1369,6 +1392,7 @@ class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseM
|
||||
def failure_message_when_negated; end
|
||||
def matches?(block); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -1404,6 +1428,7 @@ class RSpec::Matchers::BuiltIn::YieldSuccessiveArgs < ::RSpec::Matchers::BuiltIn
|
||||
def failure_message_when_negated; end
|
||||
def matches?(block); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -1421,6 +1446,7 @@ class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::Base
|
||||
def failure_message_when_negated; end
|
||||
def matches?(block); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -1437,6 +1463,7 @@ class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::Ba
|
||||
def failure_message_when_negated; end
|
||||
def matches?(block); end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -1499,6 +1526,7 @@ module RSpec::Matchers::DSL::DefaultImplementations
|
||||
def diffable?; end
|
||||
def expects_call_stack_jump?; end
|
||||
def supports_block_expectations?; end
|
||||
def supports_value_expectations?; end
|
||||
|
||||
private
|
||||
|
||||
@ -17,6 +17,8 @@ module RSpec
|
||||
def context(*args, &example_group_block); end
|
||||
def current_example; end
|
||||
def current_example=(example); end
|
||||
def current_scope; end
|
||||
def current_scope=(scope); end
|
||||
def describe(*args, &example_group_block); end
|
||||
def example_group(*args, &example_group_block); end
|
||||
def fcontext(*args, &example_group_block); end
|
||||
@ -55,6 +57,12 @@ class RSpec::Mocks::AllowanceTarget < ::RSpec::Mocks::TargetBase
|
||||
def to_not(matcher, *_args); end
|
||||
end
|
||||
|
||||
class RSpec::Mocks::AndInvokeImplementation
|
||||
def initialize(procs_to_invoke); end
|
||||
|
||||
def call(*args, &block); end
|
||||
end
|
||||
|
||||
class RSpec::Mocks::AndReturnImplementation
|
||||
def initialize(values_to_return); end
|
||||
|
||||
@ -783,6 +791,7 @@ class RSpec::Mocks::Matchers::Receive
|
||||
def initialize(message, block); end
|
||||
|
||||
def and_call_original(*args, &block); end
|
||||
def and_invoke(*args, &block); end
|
||||
def and_raise(*args, &block); end
|
||||
def and_return(*args, &block); end
|
||||
def and_throw(*args, &block); end
|
||||
@ -832,6 +841,7 @@ class RSpec::Mocks::Matchers::ReceiveMessageChain
|
||||
def initialize(chain, &block); end
|
||||
|
||||
def and_call_original(*args, &block); end
|
||||
def and_invoke(*args, &block); end
|
||||
def and_raise(*args, &block); end
|
||||
def and_return(*args, &block); end
|
||||
def and_throw(*args, &block); end
|
||||
@ -896,6 +906,7 @@ class RSpec::Mocks::MessageExpectation
|
||||
include ::RSpec::Mocks::MessageExpectation::ImplementationDetails
|
||||
|
||||
def and_call_original; end
|
||||
def and_invoke(first_proc, *procs); end
|
||||
def and_raise(*args); end
|
||||
def and_return(first_value, *values); end
|
||||
def and_throw(*args); end
|
||||
@ -17,6 +17,8 @@ module RSpec
|
||||
def context(*args, &example_group_block); end
|
||||
def current_example; end
|
||||
def current_example=(example); end
|
||||
def current_scope; end
|
||||
def current_scope=(scope); end
|
||||
def describe(*args, &example_group_block); end
|
||||
def example_group(*args, &example_group_block); end
|
||||
def fcontext(*args, &example_group_block); end
|
||||
@ -1,9 +1,9 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `rspec` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem rspec`.
|
||||
|
||||
# typed: true
|
||||
|
||||
module RSpec
|
||||
extend ::RSpec::Support::Warnings
|
||||
extend ::RSpec::Core::Warnings
|
||||
@ -17,6 +17,8 @@ module RSpec
|
||||
def context(*args, &example_group_block); end
|
||||
def current_example; end
|
||||
def current_example=(example); end
|
||||
def current_scope; end
|
||||
def current_scope=(scope); end
|
||||
def describe(*args, &example_group_block); end
|
||||
def example_group(*args, &example_group_block); end
|
||||
def fcontext(*args, &example_group_block); end
|
||||
Loading…
x
Reference in New Issue
Block a user