Sha256: 0829572aba8507bb4c994203501e4c56806a39a522bd27481654083286976cac

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 Bytes

Contents

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 { should respond_to :ack_message }
  it { should respond_to :nack_message }
end

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.3.0 spec/support/shared/client_ack_examples.rb
message-driver-0.2.2 spec/support/shared/client_ack_examples.rb
message-driver-0.2.1 spec/support/shared/client_ack_examples.rb
message-driver-0.2.0 spec/support/shared/client_ack_examples.rb
message-driver-0.2.0.rc2 spec/support/shared/client_ack_examples.rb
message-driver-0.2.0.rc1 spec/support/shared/client_ack_examples.rb