Sha256: 3c8884b16a8c48f08e9b2c191ebb2bbbaf1d672a4c4f35e99853ead0d2148cc5
Contents?: true
Size: 825 Bytes
Versions: 6
Compression:
Stored size: 825 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '../../spec_helper') describe "Cloudist" do describe "Cloudist::Queues::BasicQueue" do before(:each) do overload_amqp reset_broker end it "should create a queue and exchange" do # MQ.stubs(:direct).with(:name).returns(true) @mq = mock("MQ") @exchange = mock("MQ Exchange") @queue = mock("MQ Queue") @queue.expects(:bind).with(@exchange) # @mq.expects(:queue).with("make.sandwich") bq = Cloudist::Queues::BasicQueue.new("make.sandwich") bq.stubs(:q).returns(@queue) bq.stubs(:mq).returns(@mq) bq.stubs(:ex).returns(@exchange) bq.setup bq.q.should_not be_nil bq.ex.should_not be_nil bq.mq.should_not be_nil end end end
Version data entries
6 entries across 6 versions & 1 rubygems