Sha256: d59d7b9cc7d5797a243d17901ff798bbb7d8192305d48f45afa7eb186a23a872

Contents?: true

Size: 411 Bytes

Versions: 11

Compression:

Stored size: 411 Bytes

Contents

require 'fake_sqs/queue_factory'

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)
    queue.should_receive(:new).with(message_factory: message_factory, name: "Foo")
    queue_factory.new(name: "Foo")
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fake_sqs-0.1.0 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.11 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.10 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.9 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.8 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.7 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.6 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.5 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.4 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.3 spec/unit/queue_factory_spec.rb
fake_sqs-0.0.2 spec/unit/queue_factory_spec.rb