Sha256: ed4261c89e449bd1cba7c34519c567138453e15956faa1479f3afa2f1be9329e

Contents?: true

Size: 459 Bytes

Versions: 9

Compression:

Stored size: 459 Bytes

Contents

require 'spec_helper'

describe Alephant::Publisher do
  let(:options)  { Alephant::Publisher::Options.new }
  let(:instance) { Alephant::Publisher.create(options) }

  before(:each) do
    Alephant::Publisher::SQSHelper::Queue.any_instance.stub(:initialize)
  end

  describe "#initialize(opts = {}, logger)" do
    it "sets parser, sequencer, queue and writer" do
      expect(instance.queue).to be_a Alephant::Publisher::SQSHelper::Queue
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alephant-publisher-0.5.1 spec/publisher_spec.rb
alephant-publisher-0.5.0 spec/publisher_spec.rb
alephant-publisher-0.4.0 spec/publisher_spec.rb
alephant-publisher-0.3.1 spec/publisher_spec.rb
alephant-publisher-0.3.0 spec/publisher_spec.rb
alephant-publisher-0.2.9 spec/publisher_spec.rb
alephant-publisher-0.2.8 spec/publisher_spec.rb
alephant-publisher-0.2.7 spec/publisher_spec.rb
alephant-publisher-0.2.6 spec/publisher_spec.rb