Sha256: 50ad05a07722a3d026a0cb9c8d7221f04d45c2ddaf89f8bb919d02c5a8a3f4ab
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
require 'spec_helper' describe Kublog::Processor do class TestTask def perform true end end describe '.work' do it 'performs a task immediately if notification processing is immediate' do Kublog.notification_processing = :immediate Kublog::Processor.work(TestTask.new).should == true end it 'creates a job in delayed job for later processing' do Kublog.notification_processing = :delayed_job Kublog::Processor.work(TestTask.new).should be_an_instance_of(Delayed::Backend::ActiveRecord::Job) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kublog-0.9.0 | spec/lib/processor_spec.rb |