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.19.7 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.6 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.5 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.4 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.3 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.1.pre.beta1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.beta2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.19.beta1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.18.2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.18.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.18.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.17.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.17.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.16.5 spec/backends/kafka_async_spec.rb
deimos-ruby-1.16.4 spec/backends/kafka_async_spec.rb
deimos-ruby-1.16.3 spec/backends/kafka_async_spec.rb
deimos-ruby-1.16.2 spec/backends/kafka_async_spec.rb