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.24.2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.24.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.24.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.3 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.1.pre.beta6 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.1.pre.beta5 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.1.pre.beta4 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.1.pre.beta3 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.1.pre.beta2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.1.pre.beta1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.23.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.22.5 spec/backends/kafka_async_spec.rb
deimos-ruby-1.22.4 spec/backends/kafka_async_spec.rb
deimos-ruby-1.22.3 spec/backends/kafka_async_spec.rb
deimos-ruby-1.22.2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.22.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.22 spec/backends/kafka_async_spec.rb
deimos-ruby-1.20.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.20.0 spec/backends/kafka_async_spec.rb