Sha256: 630daf958caa06e0085e06a68664cb08bd16ee6f81276f00ac878919caafd573

Contents?: true

Size: 487 Bytes

Versions: 133

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Deimos::Backends::KafkaAsync do
  include_context 'with publish_backend'
  it 'should publish to Kafka asynchronously' do
    producer = instance_double(Phobos::Producer::ClassMethods::PublicAPI)
    expect(producer).to receive(:async_publish_list).with(messages.map(&:encoded_hash))
    expect(described_class).to receive(:producer).and_return(producer)
    described_class.publish(producer_class: MyProducer, messages: messages)
  end
end

Version data entries

133 entries across 133 versions & 3 rubygems

Version Path
deimos-ruby-1.0.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.0.0.pre.beta26 spec/backends/kafka_async_spec.rb
deimos-ruby-1.0.0.pre.beta25 spec/backends/kafka_async_spec.rb
deimos-ruby-1.0.0.pre.beta24 spec/backends/kafka_async_spec.rb
deimos-ruby-1.0.0.pre.beta23 spec/backends/kafka_async_spec.rb
deimos-ruby-1.0.0.pre.beta22 spec/backends/kafka_async_spec.rb
deimos-kafka-1.0.0.pre.beta21 spec/backends/kafka_async_spec.rb
deimos-kafka-1.0.0.pre.beta20 spec/backends/kafka_async_spec.rb
deimos-kafka-1.0.0.pre.beta19 spec/backends/kafka_async_spec.rb
deimos-kafka-1.0.0.pre.beta18 spec/backends/kafka_async_spec.rb
deimos-kafka-1.0.0.pre.beta17 spec/backends/kafka_async_spec.rb
deimos-kafka-1.0.0.pre.beta16 spec/backends/kafka_async_spec.rb
deimos-kafka-1.0.0.pre.beta15 spec/backends/kafka_async_spec.rb