Files
crono/spec/performer_proxy_spec.rb
Dzmitry Plashchynski a9798acb35 Lint the whole project
2015-03-13 20:46:54 +02:00

14 lines
272 B
Ruby

require 'spec_helper'
class TestJob
def perform
end
end
describe Crono::PerformerProxy do
it 'should add job to schedule' do
expect(Crono.scheduler).to receive(:add_job).with(kind_of(Crono::Job))
Crono.perform(TestJob).every(2.days, at: '15:30')
end
end