spec/models/commands_spec.rb in rmpd-1.0.5 vs spec/models/commands_spec.rb in rmpd-1.1.0

- old
+ new

@@ -31,19 +31,9 @@ lambda do @conn.ping end.should raise_error(Rmpd::MpdError, "Retry count exceeded") end - it "should hide password output when in debug mode" do - set_password - @socket.stub!(:readline).and_return(*(connect_and_auth_responses + ok)) - Kernel.should_receive(:puts).with("send: password #{"*"*8}") - Kernel.should_receive(:puts).with("send: ping") - $DEBUG = 1 - @conn.ping - $DEBUG = nil - end - it "should abort after a limited number of tries against a closed connection" do @socket.stub!(:puts).and_raise(EOFError) @socket.stub!(:readline).and_return(*(connect_response + ok)) @socket.should_receive(:close).exactly(5).times lambda do