Sha256: 305cad7b523bcf7d76d3fe93043d46343b95623f568552461c2f474250f81147

Contents?: true

Size: 471 Bytes

Versions: 10

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'

describe Alephant::Publisher::Processor do

  before(:each) do
    allow_any_instance_of(Alephant::Publisher::Writer).to receive(:initialize)
    allow_any_instance_of(Alephant::Publisher::Writer).to receive(:run!)
  end

  describe "#consume(msg)" do
    it "Consume the message and deletes it" do

      msg = double('AWS::SQS::ReceivedMessage', :delete => nil)
      expect(msg).to receive(:delete)
      subject.consume(msg)

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alephant-publisher-0.6.10 spec/processor_spec.rb
alephant-publisher-0.6.9 spec/processor_spec.rb
alephant-publisher-0.6.8 spec/processor_spec.rb
alephant-publisher-0.6.7 spec/processor_spec.rb
alephant-publisher-0.6.6 spec/processor_spec.rb
alephant-publisher-0.6.5 spec/processor_spec.rb
alephant-publisher-0.6.4 spec/processor_spec.rb
alephant-publisher-0.6.3 spec/processor_spec.rb
alephant-publisher-0.6.2 spec/processor_spec.rb
alephant-publisher-0.6.1 spec/processor_spec.rb