Sha256: e09c373755d6fd3eb5d3248c62d7157f48332e445025facaa71518bb7d3ae895

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

module Mocktail
  module DSL
    extend T::Sig

    def stubs(ignore_block: false, ignore_extra_args: false, ignore_arity: false, times: nil, &demo)
      RegistersStubbing.new.register(demo, DemoConfig.new(
        ignore_block: ignore_block,
        ignore_extra_args: ignore_extra_args,
        ignore_arity: ignore_arity,
        times: times
      ))
    end

    def verify(ignore_block: false, ignore_extra_args: false, ignore_arity: false, times: nil, &demo)
      VerifiesCall.new.verify(demo, DemoConfig.new(
        ignore_block: ignore_block,
        ignore_extra_args: ignore_extra_args,
        ignore_arity: ignore_arity,
        times: times
      ))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mocktail-2.0.0 lib/mocktail/dsl.rb