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

Version Path
fake_servicebus-0.0.2 spec/unit/queue_factory_spec.rb
fake_sqs-0.4.3 spec/unit/queue_factory_spec.rb
fake_sqs-0.4.2 spec/unit/queue_factory_spec.rb
fake_sqs-0.4.1 spec/unit/queue_factory_spec.rb
fake_sqs-0.4.0 spec/unit/queue_factory_spec.rb
fake_sqs-0.3.1 spec/unit/queue_factory_spec.rb
fake_sqs-0.3.0 spec/unit/queue_factory_spec.rb
fake_sqs-0.2.0 spec/unit/queue_factory_spec.rb