Sha256: 3525ddddcf747ebba8f99e40d213fb89ad26d5f4a7f0c296284af1ddc0d4d383

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 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::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::Queue
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alephant-publisher-0.2.5 spec/publisher_spec.rb
alephant-publisher-0.2.4 spec/publisher_spec.rb
alephant-publisher-0.2.3 spec/publisher_spec.rb
alephant-publisher-0.2.2 spec/publisher_spec.rb
alephant-publisher-0.2.1 spec/publisher_spec.rb