Sha256: 739450803e47461a81423d3f8a35752cc82c83191e3ed45b5663e574948cd930

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 Bytes

Contents

RSpec.shared_examples 'client acks are supported' do
  describe '#supports_client_acks' do
    it 'returns true' do
      expect(subject.supports_client_acks?).to eq(true)
    end
  end

  it { is_expected.to respond_to :ack_message }
  it { is_expected.to respond_to :nack_message }
end

RSpec.shared_examples 'client acks are not supported' do
  describe '#supports_client_acks' do
    it 'returns false' do
      expect(subject.supports_client_acks?).to eq(false)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
message-driver-0.6.1 spec/support/shared/client_ack_examples.rb
message-driver-0.6.0 spec/support/shared/client_ack_examples.rb
message-driver-0.5.3 spec/support/shared/client_ack_examples.rb
message-driver-0.5.2 spec/support/shared/client_ack_examples.rb
message-driver-0.5.1 spec/support/shared/client_ack_examples.rb
message-driver-0.5.0 spec/support/shared/client_ack_examples.rb