spec/models/connection_spec.rb in rmpd-1.1.15 vs spec/models/connection_spec.rb in rmpd-1.1.16

- old
+ new

@@ -16,17 +16,19 @@ end it "should connect successfully" do responses = connect_response + ok @socket.should_receive(:readline).and_return(*responses) + @conn.connect @conn.ping end it "should authenticate successfully" do responses = connect_and_auth_responses + ok set_password @socket.should_receive(:readline).and_return(*responses) + @conn.connect @conn.ping end it "should generate a server version" do pending "Do I care anymore?" @@ -38,9 +40,10 @@ end it "should handle connection failures gracefully" do @socket.stub!(:connect).and_raise(Errno::ECONNREFUSED.new("test")) lambda do + @conn.connect @conn.ping end.should raise_error(Rmpd::MpdError) end it "should restrict access based on server version" do