Sha256: c7f568e3a39f0f1ba8a8101ae300a51de2ba995afd26ca8040ebafd9eb1e8f6a

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 Bytes

Contents

require 'spec_helper'

module MessageDriver
  module Destination
    RSpec.describe Base do
      subject(:destination) { Base.new(nil, nil, nil, nil) }

      describe '#middlware' do
        it { expect(subject.middleware).to be_a Middleware::MiddlewareStack }
      end

      include_examples "doesn't support #message_count"
      include_examples "doesn't support #consumer_count"

      describe '#subscribe' do
        it 'raises an error' do
          expect do
            consumer = ->(_) {}
            destination.subscribe(&consumer)
          end.to raise_error "#subscribe is not supported by #{destination.class}"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
message-driver-0.6.1 spec/units/message_driver/destination_spec.rb
message-driver-0.6.0 spec/units/message_driver/destination_spec.rb
message-driver-0.5.3 spec/units/message_driver/destination_spec.rb
message-driver-0.5.2 spec/units/message_driver/destination_spec.rb
message-driver-0.5.1 spec/units/message_driver/destination_spec.rb
message-driver-0.5.0 spec/units/message_driver/destination_spec.rb