Sha256: 83922b4f1f4f306dfd8e236bc47f58568c3cc5ec0d7bad2843bdda402b771f3f
Contents?: true
Size: 621 Bytes
Versions: 6
Compression:
Stored size: 621 Bytes
Contents
require 'songkick_queue' RSpec.describe SongkickQueue do describe "#configure" do it "should yield instance of Configuration" do expect { |b| SongkickQueue.configure(&b) }.to yield_with_args instance_of(SongkickQueue::Configuration) end end describe "#publish" do it "should call #publish on instance Producer" do producer = instance_double(SongkickQueue::Producer) allow(SongkickQueue).to receive(:producer) { producer } expect(producer).to receive(:publish).with(:queue_name, :message, {}) SongkickQueue.publish(:queue_name, :message) end end end
Version data entries
6 entries across 6 versions & 1 rubygems