Sha256: 11ea5703c52820ff0968dac9dfaee70df0188c53334226c9911141a6ecd2d47f

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe Cloudist::Queue do
  before(:each) do
    stub_amqp!
  end
  
  it "should cache new queues" do
    q1 = Cloudist::Queue.new("test.queue")
    q2 = Cloudist::Queue.new("test.queue")
    
    # q1.cached_queues.should == {}
    q1.q.should == q2.q
    Cloudist::Queue.cached_queues.should == {}
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cloudist-0.4.3 spec/cloudist/queue_spec.rb
cloudist-0.4.2 spec/cloudist/queue_spec.rb
cloudist-0.4.1 spec/cloudist/queue_spec.rb