Skip to content

Instantly share code, notes, and snippets.

@koke
Created February 13, 2013 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koke/4775721 to your computer and use it in GitHub Desktop.
Save koke/4775721 to your computer and use it in GitHub Desktop.
[_blog validateJetpackUsername:@"test1" password:@"test1" success:^{
STFail(@"User test1 shouldn't have access to test.blog");
} failure:^(NSError *error) {
STAssertEquals(error.domain, BlogJetpackErrorDomain, nil);
STAssertEquals(error.code, BlogJetpackErrorCodeNoRecordForBlog, nil);
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment