Sha256: 79b560753ee7023a199d20e013d3a3a499287c0a73b00b9782c8a644da6098c7

Contents?: true

Size: 425 Bytes

Versions: 46

Compression:

Stored size: 425 Bytes

Contents

require 'spec_helper.rb'

describe Pwwka::SendMessageAsyncJob, :legacy do

  let(:payload) { Hash[:this, "that"] }
  let(:routing_key) { "this.that.and.theother" }

  describe '::perform' do
    it 'calls Pwwwka::Transmitter to send the message' do
      expect(Pwwka::Transmitter).to receive(:send_message!).with(payload, routing_key, on_error: :raise)
      described_class.perform(payload, routing_key)
    end
  end

end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
pwwka-0.11.0 spec/legacy/send_message_async_job_spec.rb
pwwka-0.11.0.RC1 spec/legacy/send_message_async_job_spec.rb
pwwka-0.10.0 spec/legacy/send_message_async_job_spec.rb
pwwka-0.10.0.RC spec/legacy/send_message_async_job_spec.rb
pwwka-0.9.0 spec/legacy/send_message_async_job_spec.rb
pwwka-0.9.0.RC1 spec/legacy/send_message_async_job_spec.rb