Sha256: 1a2dd7878c3296ac75d0e29153554138e5299a0da7a7e1f77f5eba32e78f185c
Contents?: true
Size: 421 Bytes
Versions: 8
Compression:
Stored size: 421 Bytes
Contents
require 'fake_sqs/queue_factory' RSpec.describe FakeSQS::QueueFactory do it "builds queues with a message factory" do message_factory = double :message_factory queue = double :queue queue_factory = FakeSQS::QueueFactory.new(message_factory: message_factory, queue: queue) expect(queue).to receive(:new).with(message_factory: message_factory, name: "Foo") queue_factory.new(name: "Foo") end end
Version data entries
8 entries across 8 versions & 2 rubygems