spec/sneakers/queue_spec.rb in sneakers-0.0.5 vs spec/sneakers/queue_spec.rb in sneakers-0.0.6

- old
+ new

@@ -12,20 +12,22 @@ it "should setup a bunny queue according to configuration values" do q = Sneakers::Queue.new("downloads", :prefetch => 25, :durable => true, :ack => true, - :heartbeat_interval => 2, - :exchange => "sneakers" + :heartbeat => 2, + :vhost => '/', + :exchange => "sneakers", + :exchange_type => :direct ) mkbunny = Object.new mkchan = Object.new mkex = Object.new mkqueue = Object.new mock(mkbunny).start {} mock(mkbunny).create_channel{ mkchan } - mock(Bunny).new(anything, :heartbeat_interval => 2){ mkbunny } + mock(Bunny).new(anything, :vhost => '/', :heartbeat => 2){ mkbunny } mock(mkchan).prefetch(25) mock(mkchan).exchange("sneakers", :type => :direct, :durable => true){ mkex } mock(mkchan).queue("downloads", :durable => true){ mkqueue }