lib/clockwork_mocks.rb in clockwork-mocks-1.1.1 vs lib/clockwork_mocks.rb in clockwork-mocks-1.2.0
- old
+ new
@@ -3,5 +3,23 @@
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