Sha256: 3a612e081af3ed660330eb011b826d5dc88bd716ef3dcdf33946363f2abf8891

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

require 'clockwork'

require 'clockwork_mocks/version'
require 'clockwork_mocks/clockwork_task'
require 'clockwork_mocks/scheduler'

module ClockworkMocks
  def self.init_rspec(allow, receive, clock_file = nil, &block)
    scheduler.init_rspec(allow, receive, clock_file, &block)
  end

  def self.scheduler
    @scheduler ||= Scheduler.new
  end

  def self.reset!
    scheduler.reset!
  end

  def self.work
    scheduler.work
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clockwork-mocks-1.2.0 lib/clockwork_mocks.rb