Sha256: 01ccfc49067905b60aba981809b9d7cfeefd8e25fca434e54f25f278bd91f80b
Contents?: true
Size: 685 Bytes
Versions: 7
Compression:
Stored size: 685 Bytes
Contents
# encoding: utf-8 require 'minitest_helper' require 'active_job' require 'say_when/processor/active_job_strategy' describe SayWhen::Processor::ActiveJobStrategy do let(:processor) { SayWhen::Processor::ActiveJobStrategy } before { SayWhen::Test::TestTask.reset } it 'process a memory stored job' do options = { name: 'Test', group: 'Test', data: { foo: 'bar', result: 1 }, job_class: 'SayWhen::Test::TestTask', job_method: 'execute' } SayWhen::Test::TestTask.wont_be :executed? job = SayWhen::Storage::MemoryStrategy.create(options) processor.process(job) SayWhen::Test::TestTask.must_be :executed? end end
Version data entries
7 entries across 7 versions & 1 rubygems