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.16.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.16.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.15.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.15.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.14.6 spec/backends/kafka_async_spec.rb
deimos-ruby-1.14.5 spec/backends/kafka_async_spec.rb
deimos-ruby-1.14.4 spec/backends/kafka_async_spec.rb
deimos-ruby-1.14.3 spec/backends/kafka_async_spec.rb
deimos-ruby-1.14.2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.14.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.14.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.13.3 spec/backends/kafka_async_spec.rb
deimos-ruby-1.13.2 spec/backends/kafka_async_spec.rb
deimos-ruby-1.13.1 spec/backends/kafka_async_spec.rb
deimos-ruby-1.13.0 spec/backends/kafka_async_spec.rb
deimos-ruby-1.12.6 spec/backends/kafka_async_spec.rb
deimos-ruby-1.12.5 spec/backends/kafka_async_spec.rb
deimos-ruby-1.12.4 spec/backends/kafka_async_spec.rb
deimos-ruby-1.12.3 spec/backends/kafka_async_spec.rb
deimos-ruby-1.12.2 spec/backends/kafka_async_spec.rb