Sha256: c47c6ff10079b4979e33d28709cca0d0fad5ec86d3a2a500be8940c2fbefca94

Contents?: true

Size: 488 Bytes

Versions: 6

Compression:

Stored size: 488 Bytes

Contents

require 'spec_helper'

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

    it "needs some real tests"

    include_examples "doesn't support #message_count"

    describe "#subscribe" do
      it "raises an error" do
        expect {
          consumer = lambda do |m| end
          destination.subscribe(&consumer)
        }.to raise_error "#subscribe is not supported by #{destination.class}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
message-driver-0.3.0 spec/units/message_driver/destination_spec.rb
message-driver-0.2.2 spec/units/message_driver/destination_spec.rb
message-driver-0.2.1 spec/units/message_driver/destination_spec.rb
message-driver-0.2.0 spec/units/message_driver/destination_spec.rb
message-driver-0.2.0.rc2 spec/units/message_driver/destination_spec.rb
message-driver-0.2.0.rc1 spec/units/message_driver/destination_spec.rb