Sha256: 6d72f0c674efd6b7830999a132ef01ae63182cc317355501967b4679d17c2bc4
Contents?: true
Size: 416 Bytes
Versions: 8
Compression:
Stored size: 416 Bytes
Contents
require 'spec_helper.rb' describe Pwwka::SendMessageAsyncJob 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
8 entries across 8 versions & 1 rubygems