Sha256: 958a90fde261da4c508affff38ecf6662f4fe66c5179b4654e98be55e19d6d29

Contents?: true

Size: 289 Bytes

Versions: 13

Compression:

Stored size: 289 Bytes

Contents

require "spec_helper"

describe Rdkafka::Producer::DeliveryReport do
  subject { Rdkafka::Producer::DeliveryReport.new(2, 100) }

  it "should get the partition" do
    expect(subject.partition).to eq 2
  end

  it "should get the offset" do
    expect(subject.offset).to eq 100
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rdkafka-0.7.0 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.6.0 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.5.0 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.4.2 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.4.1 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.4.0 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.3.5 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.3.4 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.3.3 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.3.2 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.3.1 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.3.0 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.2.0 spec/rdkafka/producer/delivery_report_spec.rb