Sha256: f8e79b3cde3c64496aa807f5b5403224da55883fbc23be1d91ed64c0acaa60cd

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

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

describe Cloudist::Messaging do
  
  it "should add queue to queues list" do
    queue = mock("Cloudist::Queue")
    queue.stubs(:name).returns("test.queue")
    Cloudist::Messaging.add_queue(queue)
    Cloudist::Messaging.active_queues.keys.should include('test.queue')
  end
  
  it "should be able to remove queues from list" do
    queue = mock("Cloudist::Queue")
    queue.stubs(:name).returns("test.queue")
    Cloudist::Messaging.add_queue(queue).keys.should == ['test.queue']
    Cloudist::Messaging.remove_queue('test.queue').keys.should == []
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

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