体验新版 GitCode,发现更多精彩内容 >>
require 'spec_helper' describe PipelineBackgroundQueue do let(:worker) do Class.new do def self.name 'DummyWorker' end include ApplicationWorker include PipelineBackgroundQueue end end it 'sets a default object storage queue automatically' do expect(worker.sidekiq_options['queue']) .to eq 'object_storage:dummy' end end