Sha256: 68643bd8b95f522e07012554ca6bfdfa12cd80cdd90676bfc9ca3c2cba0efe75

Contents?: true

Size: 1.11 KB

Versions: 7

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

7 entries across 7 versions & 1 rubygems

Version Path
lunchmoney-1.4.0 sorbet/rbi/annotations/mocha.rbi
lunchmoney-1.2.0 sorbet/rbi/annotations/mocha.rbi
lunchmoney-1.1.2 sorbet/rbi/annotations/mocha.rbi
lunchmoney-1.1.1 sorbet/rbi/annotations/mocha.rbi
lunchmoney-1.1.0 sorbet/rbi/annotations/mocha.rbi
lunchmoney-1.0.0 sorbet/rbi/annotations/mocha.rbi
lunchmoney-0.10.0 sorbet/rbi/annotations/mocha.rbi