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

Version Path
search-kit-0.0.10 spec/search_kit/polling_spec.rb
search-kit-0.0.9 spec/search_kit/polling_spec.rb
search-kit-0.0.8 spec/search_kit/polling_spec.rb
search-kit-0.0.7 spec/search_kit/polling_spec.rb
search-kit-0.0.6 spec/search_kit/polling_spec.rb
search-kit-0.0.5 spec/search_kit/polling_spec.rb
search-kit-0.0.4 spec/search_kit/polling_spec.rb