spec/exchange_spec.rb in bunny-0.1.0 vs spec/exchange_spec.rb in bunny-0.1.1
- old
+ new
@@ -60,10 +60,11 @@
exch.publish('This is a published message')
end
it "should be able to be deleted" do
exch = @b.exchange('direct_exchange')
- exch.delete
+ res = exch.delete
+ res.should == 'EXCHANGE DELETED'
@b.exchanges.has_key?('direct_exchange').should be false
end
it "should ignore the :nowait option when deleted" do
exch = @b.exchange('direct2_exchange')
\ No newline at end of file