Sha256: 5d4fc2d7472c05058dd6004ac4be3e2799021f053939a992a23572f8f752f417

Contents?: true

Size: 494 Bytes

Versions: 20

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

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

  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

  it "should get the topic_name" do
    expect(subject.topic_name).to eq "topic"
  end

  it "should get the error" do
    expect(subject.error).to eq -1
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rdkafka-0.13.1 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.8 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.7 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.6 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.5 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.4 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.13.0 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.3 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.2 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.1 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.13.0.beta.8 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.0 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.0.beta2 spec/rdkafka/producer/delivery_report_spec.rb
karafka-rdkafka-0.13.0.beta1 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.13.0.beta.7 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.13.0.beta.6 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.13.0.beta.5 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.13.0.beta.3 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.13.0.beta.2 spec/rdkafka/producer/delivery_report_spec.rb
rdkafka-0.13.0.beta.1 spec/rdkafka/producer/delivery_report_spec.rb