Sha256: d13f739c5579e149835c8dc0ddf46e863e12faf62bbfa034d28feb3a5bd58e3f

Contents?: true

Size: 1.06 KB

Versions: 17

Compression:

Stored size: 1.06 KB

Contents

# typed: strict

# 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: T.untyped, matching_block: T.nilable(T.proc.params(actual_parameters: T.untyped).void)).returns(Mocha::Expectation) }
  def with(*expected_parameters, &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

17 entries across 17 versions & 1 rubygems

Version Path
whatsapp_sdk-0.12.1 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.12.0 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.11.0 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.10.0 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.9.2 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.9.1 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.8.0 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.7.3 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.7.2 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.7.1 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.7.0 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.6.2 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.6.1 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.6.0 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.5.1 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.5.0 sorbet/rbi/annotations/mocha.rbi
whatsapp_sdk-0.4.0 sorbet/rbi/annotations/mocha.rbi