spec/exchange_spec.rb in bunny-0.0.9 vs spec/exchange_spec.rb in bunny-0.1.0

- old
+ new

@@ -49,17 +49,26 @@ exch.name.should == 'fanout_exchange' exch.type.should == :fanout @b.exchanges.has_key?('fanout_exchange').should be true end + it "should ignore the :nowait option when instantiated" do + exch = @b.exchange('direct2_exchange', :nowait => true) + end + it "should be able to publish a message" do exch = @b.exchange('direct_exchange') exch.publish('This is a published message') end it "should be able to be deleted" do exch = @b.exchange('direct_exchange') exch.delete @b.exchanges.has_key?('direct_exchange').should be false + end + + it "should ignore the :nowait option when deleted" do + exch = @b.exchange('direct2_exchange') + exch.delete(:nowait => true) end end \ No newline at end of file