Sha256: 3f14e93a3657bac5ecc4f671dc50d43269ae3a8e1eb8a9883e02b41d562fb2f0
Contents?: true
Size: 535 Bytes
Versions: 7
Compression:
Stored size: 535 Bytes
Contents
require 'spec_helper' describe SearchKit::Polling do let(:channel) { 'mail' } let(:block) { Proc.new { |x| true } } let(:service) { described_class.new(channel, &block) } subject { service } it { is_expected.to respond_to :channel } it { is_expected.to respond_to :block } describe '#process_queue' do subject { service.process_queue } it "performs a Process action" do expect(SearchKit::Polling::Process) .to receive(:perform) .with(channel, &block) subject end end end
Version data entries
7 entries across 7 versions & 1 rubygems