spec/onstomp/client_spec.rb in onstomp-1.0.0pre1 vs spec/onstomp/client_spec.rb in onstomp-1.0.0

- old
+ new

@@ -122,10 +122,11 @@ describe ".disconnect_with_flush" do before(:each) do client.stub(:processor => processor_class) end it "should call disconnect_without_flush and join the processor" do + processor.should_receive(:prepare_to_close) processor.should_receive(:join) client.should_receive(:disconnect_without_flush).with(headers).and_return(frame) client.disconnect_with_flush(headers).should == frame end end @@ -232,13 +233,9 @@ describe ".processor" do it "should convert the processor to a class/module" do client.processor = '::Module' client.processor.should == Module - end - it "should use the NilProcessor if set to nil" do - client.processor = nil - client.processor.should == OnStomp::Components::NilProcessor end end describe ".login" do it "should convert to a string" do