evernote/evernote-sdk-ios — pull request #2 by mcglincy (2012-05-02 07:42:16+00:00)
Title: Improve EvernoteSession error handling and add unit tests.

-- EvernoteSession now has better handling of all NSURLConnectionDelegate callback methods.
-- EvernoteSession now traps non-200-status code responses with a proper error callback. This should help users better debug 401s for bad consumer keys.
-- Added EvernoteSessionTests to exercise various error handling, as well as a successful authentication. I needed to abstract a few methods, and make a few things public to make EvernoteSession unit-testable with OCMock.