Sha256: 68643bd8b95f522e07012554ca6bfdfa12cd80cdd90676bfc9ca3c2cba0efe75

Contents?: true

Size: 1.11 KB

Versions: 28

Compression:

Stored size: 1.11 KB

Contents

# typed: true

# DO NOT EDIT MANUALLY
# This file was pulled from a central RBI files repository.
# Please run `bin/tapioca annotations` to update it.

module Mocha::API
  sig { params(arguments: T.untyped).returns(Mocha::Mock) }
  def mock(*arguments); end

  sig { params(arguments: T.untyped).returns(T.untyped) }
  def stub(*arguments); end
end

module Mocha::ClassMethods
  sig { returns(Mocha::Mock) }
  def any_instance; end
end

class Mocha::Expectation
  sig { params(expected_parameters_or_matchers: T.untyped, kwargs: T.untyped, matching_block: T.nilable(T.proc.params(actual_parameters: T.untyped).void)).returns(Mocha::Expectation) }
  def with(*expected_parameters_or_matchers, **kwargs, &matching_block); end

  sig { params(values: T.untyped).returns(Mocha::Expectation) }
  def returns(*values); end
end

module Mocha::ObjectMethods
  sig { params(expected_methods_vs_return_values: T.untyped).returns(Mocha::Expectation) }
  def expects(expected_methods_vs_return_values); end

  sig { params(stubbed_methods_vs_return_values: T.untyped).returns(Mocha::Expectation) }
  def stubs(stubbed_methods_vs_return_values); end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
checkoff-0.223.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.222.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.221.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.220.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.219.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.218.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.217.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.216.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.215.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.214.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.213.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.212.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.211.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.210.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.209.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.208.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.207.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.206.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.205.0 sorbet/rbi/annotations/mocha.rbi
checkoff-0.204.0 sorbet/rbi/annotations/mocha.rbi